0

I am testing Python 3.6 on Windows iis 10.0 and get the error 401 from browser when I call a .py file.

  • I have iis working on ASP pages and HTML
  • I have phyton.exe installed and working
  • I have added a .py handler in iis
  • I have tried to allow anonymous access and set up authorization as IUSR in iis
  • ( And I allowed IUSR and IIS_IUSR... Full access on application directory)

I looked on Google and tried out many suggetsions! BUT No way to esecute the script!

Dharman
  • 30,962
  • 25
  • 85
  • 135
  • 401 is authentication related error, but only the 404 error cannot reproduce your problem, please post detailed error information. and in iis authentication, which authentication methods you have enabled? – samwu Dec 08 '20 at 01:48
  • the error is 401 - Unauthorized: "Access is denied due to invalid credentials.Anonimous Authentication method. I tried also Pool Auth Identity, but same result. – user1464532 Dec 10 '20 at 21:39
  • You can try to use Windows Authentication. In the Authentication list, enable Windows Authentication option, and disable all other authentication options. and the account whose credentials are specified to access the portal has Read permisison to the Password Manager instalaltion directory. – samwu Dec 14 '20 at 09:39

1 Answers1

0

You have to add %s %s at the end of the Python Interpreter address.

Ben Löffel
  • 931
  • 4
  • 12
  • 29