Why is my HttpPlatformHandler server app getting HTTP Error 502.3 Bad Gateway

556 Views Asked by At

I'm writing a HttpPlatformHandler server app with C++ and Winsock functions. It works great on my development machine but when deployed on other machines it fails. I can run it separately and access it from the browser using the default port I coded into it on those other machines. Here are the error details:

Web Browser:

HTTP Error 502.3 Bad Gateway Error Code 0x80070057 There was a connection error while trying to route the request.

Event Viewer:

HttpPlatformHandler Process '0' failed to start. Port = 19516, Error Code = '-2147024809'.

1

There are 1 best solutions below

0
Roland Smith On

I figured it out. I had the web.config file in a subfolder under C:\inetpub\wwwroot with the file in the URL. I moved it to C:\inetpub\wwwroot and now it works.