Reputation: 739
In my Blazor server side app, I have updated the framework from .Net6.0 to 7.0 but got this error when I open the web page:
HTTP Error 500.31 - Failed to load ASP.NET Core runtime
I get this error on several client PC's when I try to open the page. When I check on these client PC's command line dotnet --info, I see that 7.0 is installed. What could be the problem?
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Upvotes: 0
Views: 563
Reputation: 739
After I have installed ASP.NET Core 7.0 Runtime (v7.0.5) - Windows Hosting Bundle Installer on the server where my application is hosted, the problem was fixed.
Upvotes: 0