Microsoft KB Archive/942057

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

Article ID: 942057

Article Last Modified on 10/2/2007

-

APPLIES TO


 * Microsoft Internet Information Services 7.0

-



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 &quot; &quot;

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 &quot; &quot;

HTTP Error 502.2 – Bad Gateway

HRESULT: 0xC00000FD

Description of HRESULT: Specified CGI application did not return a complete set of HTTP headers.



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 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.

Keywords: kbexpertiseadvanced kbtshoot kbprb KB942057

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.