Azure flask <handler> scriptProcessor could not be found in <fastCGI> application configuration Azure flask <handler> scriptProcessor could not be found in <fastCGI> application configuration flask flask

Azure flask <handler> scriptProcessor could not be found in <fastCGI> application configuration


The <fastCGI> settings must be in the applicationHost.config file (in the system.webServer section) of IIS. Just putting it into web.config does not work (confirmed by testing it on a local IIS, not in Azure). An example configuration may look like this:

<fastCgi>  <application    fullPath="D:\home\Python27\python.exe"    arguments="D:\home\Python27\wfastcgi.py"    maxInstances="16"    idleTimeout="21600"    instanceMaxRequests="10000000"    signalBeforeTerminateSeconds="60"    xdt:Transform="InsertIfMissing"    xdt:Locator="Match(fullPath)">    <environmentVariables>      <environmentVariable name="PYTHONHOME" value="D:\home\Python27" />    </environmentVariables>  </application></fastCgi>

You may want to adjust this configuration.

This should solve it for a local IIS where you can edit applicationHost.config. I'm not sure about Azure, but maybe you can find some hints here: https://github.com/Azure/azure-python-siteextensions/issues/2.