0

When I host my web API on IIS, the Python script does not execute as expected. However, the entire workflow functions correctly during local development and debugging in Visual Studio.

What I Have Tried: Followed this guide to configure IIS.(https://www.server-world.info/en/note?os=Windows_Server_2022&p=iis&f=12) Checked the permissions and ensured that the application pool identity has the necessary permissions to run the Python script. Verified the Python script works independently when run from the command line on the server. Added logging to capture any errors, but the logs don't show any obvious issues.

Expected Behavior: The Python script should execute and return the output to the .NET Web API when the application is hosted on IIS, just as it does during local development.

2
  • The differences are not only the user account, but many others, docs.lextudio.com/blog/… Besides, Python interpreter also works differently in different cases. What exactly do you need to run on Python side? Ideally you should write everything in .NET to eliminate the deployment complexity. Commented Jul 9, 2024 at 17:43
  • You can check if there are any related error messages in Event Viewer or console. Commented Jul 11, 2024 at 7:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.