502 Bad Gateway on Windows 2003 Server

M

Martin Boehm

Hi all,

May I kindly ask for your assistance on this issue.

We have the following problem with one of our webservices. Since our
customer uses an automatic proxy configuration script, we have to use a
proxy server for making our webservice requests. This works fine.

Recently we've got another webserver (works with Windows2003) and hosted a
new instance of our webservice there. When connecting to the new webservice
we always receive the following errormessage:

*********Error Information*********
Error Message: The request failed with HTTP status 502: Bad Gateway.
Error Type: System.Net.WebException
detailled error information:
System.Net.WebException: The request failed with HTTP status 502: Bad
Gateway.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(String
strWebserviceUrl)
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application,
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin)
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButton
Ctrl, Boolean& Cancel)

Stacktrace:
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(String
strWebserviceUrl)
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application,
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin)
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButton
Ctrl, Boolean& Cancel)

The funny thing is that calling the webservice functions from a browser
window on another machine works fine. It seems that there must be some
configuration setting that must be set.

Has anyone else encountered this problem already?

Any help is appreciated!!!

Best regards
Martin dot Boehm at opus hyphen gmbh dot net
 
D

Durgaprasad Gorti[MSFT]

Martin,
Could you send me the NETMON Sniffs

502 Bad Gaeway menas that
10.5.3 502 bad gateway
The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request

Also can you give me a little more info
a) Does calling the web service on the machine it is failing work throgh a browser
b) If yoiu use a different proxy do you still get 502 bad gatewa

----- Martin Boehm wrote: ----


Hi all

May I kindly ask for your assistance on this issue

We have the following problem with one of our webservices. Since ou
customer uses an automatic proxy configuration script, we have to use
proxy server for making our webservice requests. This works fine

Recently we've got another webserver (works with Windows2003) and hosted
new instance of our webservice there. When connecting to the new webservic
we always receive the following errormessage

*********Error Information********
Error Message: The request failed with HTTP status 502: Bad Gateway
Error Type: System.Net.WebExceptio
detailled error information
System.Net.WebException: The request failed with HTTP status 502: Ba
Gateway
a
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien
Message message, WebResponse response, Stream responseStream, Boolea
asyncCall
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(Strin
methodName, Object[] parameters
a
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion(
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion(
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy(
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(Strin
strWebserviceUrl
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButto
Ctrl, Boolean& Cancel

Stacktrace
a
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien
Message message, WebResponse response, Stream responseStream, Boolea
asyncCall
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(Strin
methodName, Object[] parameters
a
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion(
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion(
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy(
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(Strin
strWebserviceUrl
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButto
Ctrl, Boolean& Cancel

The funny thing is that calling the webservice functions from a browse
window on another machine works fine. It seems that there must be som
configuration setting that must be set

Has anyone else encountered this problem already

Any help is appreciated!!

Best regard
Martin dot Boehm at opus hyphen gmbh dot ne
 
M

Martin Boehm

Hello Durgaprasad,

first of all thanks for your reply. I have to ask for permission to do the
netmon sniff, and will provide them to you as soon as I have them.

In the meantime, here's some more information:

Calling the webservice from a browser window works fine (both locally and
from another client). We also have another asp.net web application running
on that machine, too. Sharepoint services is also running on the machine.

Accessing other webservice instances using the same proxy on our other
server works fine. Our original server is called opus.intra.customer.com
whereas we access the new system by using the servername, e.g.
http://newserver/webservice_421/service.asmx. All sites from
intra.customer.com are within the local intranet zone.

I will contact you again, when I get the netmon sniffs.

Thanks in advance & Best Regards
Martin dot Boehm at opus hyphen gmbh dot net


Durgaprasad Gorti said:
Martin,
Could you send me the NETMON Sniffs?

502 Bad Gaeway menas that
10.5.3 502 bad gateway
The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to fulfill the
request.
Also can you give me a little more info?
a) Does calling the web service on the machine it is failing work throgh a browser?
b) If yoiu use a different proxy do you still get 502 bad gateway

----- Martin Boehm wrote: -----


Hi all,

May I kindly ask for your assistance on this issue.

We have the following problem with one of our webservices. Since our
customer uses an automatic proxy configuration script, we have to use a
proxy server for making our webservice requests. This works fine.

Recently we've got another webserver (works with Windows2003) and hosted a
new instance of our webservice there. When connecting to the new webservice
we always receive the following errormessage:

*********Error Information*********
Error Message: The request failed with HTTP status 502: Bad Gateway.
Error Type: System.Net.WebException
detailled error information:
System.Net.WebException: The request failed with HTTP status 502: Bad
Gateway.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(String
strWebserviceUrl)
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application,
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin)
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButton
Ctrl, Boolean& Cancel)

Stacktrace:
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(String
strWebserviceUrl)
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application,
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin)
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButton
Ctrl, Boolean& Cancel)

The funny thing is that calling the webservice functions from a browser
window on another machine works fine. It seems that there must be some
configuration setting that must be set.

Has anyone else encountered this problem already?

Any help is appreciated!!!

Best regards
Martin dot Boehm at opus hyphen gmbh dot net
 
M

Martin Boehm

Hello Chris,

Thank you very much for your reply.

We also have another .Net webapplication (no webservice) running on the same
machine, which connects to the same ORACLE database which works fine.

Additionally we are also able to retrieve data from our webservice by using
a browser window, so I think the connectivity libraries should be installed.

Best Regards
Martin dot Boehm at opus hyphen gmbh dot net


Christian Boult said:
You also will get this if you are accessing Sql Server (or probably any
other DB) and the connectivity libraries to that DB are not installed.

So if you are accessing Sql Server make sure the run time connectivity
libraries are installed on your server.
One of our client had that problem and this solved it.

Chris.

Durgaprasad Gorti said:
Martin,
Could you send me the NETMON Sniffs?

502 Bad Gaeway menas that
10.5.3 502 bad gateway
The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to fulfill the
request.
Also can you give me a little more info?
a) Does calling the web service on the machine it is failing work throgh
a
browser?
b) If yoiu use a different proxy do you still get 502 bad gateway

----- Martin Boehm wrote: -----


Hi all,

May I kindly ask for your assistance on this issue.

We have the following problem with one of our webservices. Since our
customer uses an automatic proxy configuration script, we have to
use
a
proxy server for making our webservice requests. This works fine.

Recently we've got another webserver (works with Windows2003) and hosted a
new instance of our webservice there. When connecting to the new webservice
we always receive the following errormessage:

*********Error Information*********
Error Message: The request failed with HTTP status 502: Bad Gateway.
Error Type: System.Net.WebException
detailled error information:
System.Net.WebException: The request failed with HTTP status 502: Bad
Gateway.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(String
strWebserviceUrl)
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application,
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin)
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButton
Ctrl, Boolean& Cancel)

Stacktrace:
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at
OpusGmbH.Klusa.CommunicationLayer.KlusaWebService.Service.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.CheckVersion()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer.createProxy()
at OpusGmbH.Klusa.CommunicationLayer.CommLayer..ctor(String
strWebserviceUrl)
at OpusGmbH.Klusa.MSProjectAddin.Project..ctor(Object application,
Boolean isExport, CommandBarButton& LogoutButton, Boolean autoLogin)
at OpusGmbH.Klusa.MSProjectAddin.Connect.menImport_Click(CommandBarButton
Ctrl, Boolean& Cancel)

The funny thing is that calling the webservice functions from a browser
window on another machine works fine. It seems that there must be some
configuration setting that must be set.

Has anyone else encountered this problem already?

Any help is appreciated!!!

Best regards
Martin dot Boehm at opus hyphen gmbh dot net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top