Thanks for the reply
- added fastCGi to iis
- installed wfastcgi via pip
- added a module mapping for FastCGI with request path *, executable C:\Users\compass\AppData\Local\Programs\Python\Python311\python.exe|C:\Users\compass\AppData\Local\Programs\Python\Python311\Lib\site-packages\wfastcgi.py
- request restrictions set to script, deselected invoke handler checkbox
- made sure iis has read/write execute to the folder with python and flask app in it
- created log folder for errors and made sire iis has write access to it
- in flask folder created web.config with
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="PYTHONPATH" value="C:\python\fusion" />
<add key="WSGI_HANDLER" value="app.app" />
<add key="WSGI_LOG" value="C:\python\fusion\wfastcgi.log" />
</appSettings>
<system.webServer>
<handlers>
<add name="Flask" path="*" verb="*" modules="FastCgiModule" scriptProcessor="C:\Users\compass\AppData\Local\Programs\Python\Python311\python.exe|C:\Users\compass\AppData\Local\Programs\Python\Python311\Lib\site-packages\wfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>
Can’t beat good old human help! So hoping for some words of wisdom!
Error I get is:
Detailed Error Information:
| Module | FastCgiModule |
|---|---|
| Notification | ExecuteRequestHandler |
| Handler | Flask |
| Error Code | 0x8007010b |
| Requested URL | Sign in to your account |
|---|---|
| Physical Path | C:\python\fusion\mobilelibrary |
| Logon Method | Negotiate |
I don’t think it should be that physical path, seeing as the physical path is one level higher, it just seems to append the url path on. So that might be a symptom of whats wrong, but that s a guess.
Thanks
Dale