. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone, I’m learning about csharp. While working, I try deploy .NET Core applications to IIS on a Windows 10 machine. As a result, I get the message:
"HTTP Error 500.31 - Failed to load ASP.NET Core runtime
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028526
What can I do about the “http error 500.31 – failed to load asp.net core runtime” issue? Is there a better approach?
The cause:
You got this error perhaps due to the application pool did not allow to access to the site folder. And another reason is that you forgot to set up the hosting bundle.
Solution:
You need to give application permissions access to the site folder.
Other way is installing the 3.1 version of the hosting bundle, the error will disappear.
In my case, I found that the target machine did not have the ASP.NET Core runtime.
After installing the Hosting Bundle , this issue was resolved.