Last post Aug 28, 2008 04:09 AM by hapytran
Aug 28, 2008 02:47 AM|hapytran|LINK
I wrote two test applications, one Console app and one Windows service. When i test with Console, It wotks ok (can connect and use web service). But when i run window service, I got below message:
System.Net.WebException was caught
Message="The remote server returned an error: (502) Bad Gateway."
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object parameters)
at OTAHotelRes.OTAHotelResService.OTAHotelReservation(HotelResRequestType OTA_HotelResRQ) in D:\TRG-OnGoing\Working\TRG_CHAMP\Source\BusinessLayer\OTAHotelResService.cs:line 73
at LogicLayer.HTE.DoHotelResRQ(HTETransaction hteTrans, HTEActionType actionType) in D:\TRG-OnGoing\Working\TRG_CHAMP\Source\LogicLayer\HTE.cs:line 359
at LogicLayer.HTE.SendToHTE(AppName appName, HTEActionType actionType) in D:\TRG-OnGoing\Working\TRG_CHAMP\Source\LogicLayer\HTE.cs:line 674
I do not know what problem is. I think maybe proxy server or something like that. Anyone got this before?
Aug 28, 2008 03:45 AM|codenenterp|LINK
The service may not have permissions to access the network.
Aug 28, 2008 03:58 AM|hapytran|LINK
How can i grant permisstion for window service?
Aug 28, 2008 04:09 AM|hapytran|LINK
I think i solved my problem. I got below message from http://bytes.com/forum/thread258471.html
"The system is strictly a local account and has no network
permission. One common solution is to run under a domain or local user
I tried running with administrator account and it works.