IIS 10 and execute CGI python script
Hello, I need help. This question is a continuation of another - How to start .exe file. I generated a CGI Python Script that runs java -jar. I tried both: cgitb.enable () and sys.stderr = sys.stdout. When I try to run index.html from IIS 10 it gives me a message that it can't open the file. I tried to see if the site directory was set correctly with a plain script that was open. I configured IIS to execute .exe. I also ran python -m http.server 9000 in the site directory. I called the script with absolute and relative address. I tried to overcome the protection in two ways: USER(IUSR and IIS_IUSRS) and AppPool. I entered the current user identity in Anonymous Authentication. The files in the image have a .py extension, the same message is given for .exe files.
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "C: \ Python \ python.exe: can't open file 'C: \ Site \ cgi-bin \ sC: \ Site \ cgi-bin \ proba13.py' : [Errno 22] Invalid argument ".