Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 502.1 – Bad Gateway"
Article ID: 942059 - View products that this article applies to.
You have a Web site that is hosted on Internet Information Services (IIS) 7.0. However, when you visit this Web site, you receive an error message that resembles the following:
Server Error in Application "application name"
HTTP Error 502.1 – Bad Gateway
Description of HRESULT
The CGI application exceeded the time allowed for processing and the process was shut down.
In this situation, IIS sends a request to the specified CGI process, and then IIS waits for a response. If IIS does not receive a response from the CGI process within the configured CGI time-out period, you receive the error message that is mentioned in the "Symptoms" section.
To resolve this problem, debug the CGI application to determine why it is not sending a response to IIS in a timely manner. If debugging the CGI application is not possible, work around this issue by increasing the CGI Timeout property. To do this, follow these steps: