# HTTP Error 500.31 - Failed to load ASP.NET Core runtime

Source: https://help.codestencil.com/troubleshooting/http-error-500-31-failed-to-load-asp-net-core-runtime

![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/annotation-2023-06-29-152555_1688053776.png)

The "**HTTP Error 500.31 - Failed to load ASP.NET Core runtime"**, can be fixed by changing the `<strong>DOTNET_FRAMEWORK</strong>` and **`DOTNET_VERSION`** of your project, to match the version installed on your machine (Visual Studio). Below is an image of the configuration dialog when you click `<strong>Generate</strong>`. You can change the versions by double-clicking on the field that requires the change.

![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/annotation-2023-06-29-165205_1688054241.png)
