Running the code locally your IDE does the work for you but when you deploy to a web server you will need to make some changes / configuration updates:
- Install both the .net core SDK and Runtime- https://www.microsoft.com/net/download/all
- For the .Net Core Runtime you will want the Hosting Bundle Installer
- Reboot the host
 
- Update the sites Application Pool , set the .NET CLR version to No Managed Code
- Update the service configuration for IISOptions in ConfigureServices- This will be in ‘Startup.cs’ (see below)
 
| 1 | services.Configure<IISOptions>(options => | 
You may also need to update the BuildWebHost method in ‘Program.cs’ to include:
| 1 | .UseContentRoot("c:\\yoursitedir")= |