You are currently offline, waiting for your internet to reconnect

Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 502.2 – Bad Gateway"

SYMPTOMS
You have a Web site that is hosted on Internet Information Services (IIS) 7.0. When you visit the Web site in a Web browser, you may receive an error message that resembles one of the following:
Error message 1
Server Error in Application "application name"
HTTP Error 502.2 – Bad Gateway
HRESULT: 0x00000003
Description of HRESULT: Specified CGI application did not return a complete set of HTTP headers.
Error message 2
Server Error in Application "application name"
HTTP Error 502.2 – Bad Gateway
HRESULT: 0xC00000FD
Description of HRESULT:Specified CGI application did not return a complete set of HTTP headers.
CAUSE

Cause of error message 1

This problem occurs because an error occurs inside the Common Gateway Interface (CGI) process. Therefore, the CGI process cannot send a valid set of HTTP headers back to IIS 7.0. When this error occurs, the CGI process does not send HTTP headers back to IIS 7.0. Or, the CGI process sends HTTP headers that are not valid back to IIS 7.0. To resolve this problem, see Resolution 1.

Cause of error message 2

This problem occurs because the CGI process terminates unexpectedly before the CGI process sends a response back to IIS 7.0. To resolve this problem, see Resolution 2.
RESOLUTION

Resolution 1

Debug the CGI process to determine why the CGI process cannot send a valid set of HTTP headers back to IIS 7.0.

Resolution 2

Troubleshoot the CGI process executable file to determine why the CGI process terminates unexpectedly. You may have to generate a memory dump file of the CGI process when the access violation occurs.
Properties

Article ID: 942057 - Last Review: 10/02/2007 20:11:37 - Revision: 1.0

  • Microsoft Internet Information Services 7.0
  • kbexpertiseadvanced kbtshoot kbprb KB942057
Feedback