We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: The FastCGI Process Exited Unexpectedly

    Jan 31, 2020 01:22 PM|mirnesa|LINK


    I have the same error but using Python/Flask in IIS.

    I have successfully set up the Flask app in IIS with FastCGI module (wfastcgi 3.0.0) on my Windows 10, but when I tried migrate to Windows Server 2016, with the same configuration, same files, same permissions, I can't get it to work.

    I get:

    Error 500.0 - Internal Server Error The FastCGI process exited unexpectedly

    In IIS log file I see additional sc-win32-status code 2 which I fond on Microsoft page:

        2 (0x2)
        The system cannot find the file specified.

    but don't know which file it is. I thought it can't recognize wfastcgi python package because of the Python version, so I tried different Python versions, but still couldn't get it working.