Dec-15-2017, 05:19 AM
I'm trying to deploy a flask app on IIS 10, but I got 500 error:
HTTP Error 500.0 - Internal Server Error
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe - The FastCGI process exited unexpectedly
I'm using python 3.6 with wfastcgi 3.0.0 and I followed the web.config file template on https://pypi.python.org/pypi/wfastcgi, still no luck.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe|C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>
<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="app.wsgi_app()" />
<add key="PYTHONPATH" value="C:\inetpub\wwwroot\imageNetModel\imageNetModel" />
<!-- Optional settings -->
<add key="WSGI_LOG" value="C:\Logs\my_app.log" />
<add key="WSGI_RESTART_FILE_REGEX" value=".*((\.py)|(\.config))$" />
<add key="APPINSIGHTS_INSTRUMENTATIONKEY" value="__instrumentation_key__" />
<add key="DJANGO_SETTINGS_MODULE" value="my_app.settings" />
<add key="WSGI_PTVSD_SECRET" value="__secret_code__" />
<add key="WSGI_PTVSD_ADDRESS" value="ipaddress:port" />
</appSettings>
</configuration>
Anyone has an idea what's going on? Thanks in advance.
HTTP Error 500.0 - Internal Server Error
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe - The FastCGI process exited unexpectedly
I'm using python 3.6 with wfastcgi 3.0.0 and I followed the web.config file template on https://pypi.python.org/pypi/wfastcgi, still no luck.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe|C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>
<appSettings>
<!-- Required settings -->
<add key="WSGI_HANDLER" value="app.wsgi_app()" />
<add key="PYTHONPATH" value="C:\inetpub\wwwroot\imageNetModel\imageNetModel" />
<!-- Optional settings -->
<add key="WSGI_LOG" value="C:\Logs\my_app.log" />
<add key="WSGI_RESTART_FILE_REGEX" value=".*((\.py)|(\.config))$" />
<add key="APPINSIGHTS_INSTRUMENTATIONKEY" value="__instrumentation_key__" />
<add key="DJANGO_SETTINGS_MODULE" value="my_app.settings" />
<add key="WSGI_PTVSD_SECRET" value="__secret_code__" />
<add key="WSGI_PTVSD_ADDRESS" value="ipaddress:port" />
</appSettings>
</configuration>
Anyone has an idea what's going on? Thanks in advance.