Ways To Fix ‘HTTP Error 500.31 – Failed to load ASP.NET Core runtime’

ASP.NET Core is an open-source, cross-platform, and extremely high-performance framework that is ideal for building cloud-enabled, modern, and internet-connected applications. You may have heard a lot about the internet of things, popularly known as IoT, ASP.Net is known to perfectly handle it. With this, you can also work on the mobile backend. But, when working on it, you can also get an error warning like ‘HTTP Error 500.31 – Failed to load ASP.NET Core runtime’.

When working on c#, you can expect this error. Here, in this article, I am going to guide you on how to fix the error in an efficient way. Let’s see how the error pops up

How the error ‘HTTP Error 500.31 – Failed to load ASP.NET Core runtime’ pop up?

You get the error warning when you are working on C# (c sharp) and trying to deploy the ASP.NET Core app to IIS on your windows 10. That’s exactly when you encounter the error warning like this

"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

This is how you land up in the error warning. To fix the issue, you need to look at the ways in the next section

Fix the Error Warning

The error warning you are getting is because the app pool doesn’t permit you to access the folder of the site. The other possible reason for this error is that there is no hosting bundle set.  

Let’s check out how to solve the error

Install ASP.NET Core Runtime

When you are using ASP.Net Core App, you should install the ASP.Net Core Runtime in the system you are using to run the IIS application. You can use Microsoft’s official website to download it. You can install the one that you want according to your operating system.

Download the Hosting Bundle

Another solution to fix the ‘HTTP Error 500.31’ is to download the Hosting Bundle for IIS. Along with that, you also need to install additional runtime support for IIS. This is the best solution you can try to handle the exception you get after compiling the code.

Permit to access the folder

This small fix can help you solve the exception that the compilation of code throws. You just have to give permission to the folder of the site. And that’s how you can get rid of the error.


Here we come to the end, where we learned how to fix ‘HTTP Error 500.31 – Failed to load ASP.NET Core runtime’. The above-mentioned solutions can help you get rid of the error warning.

I wish you luck! Happy coding!

Reference Source: https://forums.ivanti.com/s/article/HTTP-Error-500-31-Failed-to-load-ASP-NET-Core-runtime-Error-when-Opening-Xtraction?language=en_US




Leave a Reply

Your email address will not be published. Required fields are marked *