Q:

How to run .NET Core project using pythonnet on IIS

I'm trying to setup a .NET Core project using IIS(Internet Information Services).  The project uses pythonnet to call functionalities written on Python.  When I start the IIS site, and send a post request to it, I get this exception.  
I have added the Path environment variable to the site environment variables. 
I have tried changing the permissions to the Python folder. 
The project works fine when started in Visual Studio 2019 using IIS Express.  I'm expecting it to work the same way as on the hosted IIS server. 

A:

The solution is pretty simple.  The problem was indeed with the permissions so I just switched The Application Pool Identity to Custom account and entered the Administrator account.  Everything seems to work as intended now.