BAD gateway in CGI IIS8 RRS feed

  • Question

  • User-1761466316 posted

    i am getting Bad gateway 

    http error 502.2 - bad gateway 

    The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "".

    OS is windows 2012 R2 with IIS 8.5

    i did change the time out in CGI but no luck 

    in the event logs i do see the below when i access the site 

    Faulting application name: Listener.exe, version:, time stamp: 0x521f16d0
    Faulting module name: ntdll.dll, version: 6.3.9600.18007, time stamp: 0x55c4bc8e
    Exception code: 0xc0000005
    Fault offset: 0x00060611
    Faulting process id: 0x11b0
    Faulting application start time: 0x01d1399ec5706dc1
    Faulting application path: W:\www\ASP\CGI-BIN\DFListener.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: 4cb73eff-a592-11e5-80ce-005056b164ed
    Faulting package full name:
    Faulting package-relative application ID:

    Please help 

    Friday, December 18, 2015 10:02 AM


  • User-823319154 posted


    http error 502.2 - bad gateway 

    Exception code: 0xc0000005

    Causes of error 502.2 - bad gateway:

    • 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. Or, the CGI process sends HTTP headers that are not valid back to IIS 7.0.
    • Because the CGI process terminates unexpectedly before the CGI process sends a response back to IIS.

    Please follow this guide to troubleshoot: https://support.microsoft.com/en-us/kb/942057 



    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, December 21, 2015 10:11 PM