使用ASP.NET Core Diagnostics for IIS/IIS Express
Cannot locate runtime config file HttpApi.Host\HttpApi.Host.runtimeconfig.json
https://dotnet.microsoft.com/en-us/download/dotnet
https://dotnet.microsoft.com/en-us/download/dotnet/6.0
评论:
左侧栏,先选中IIS,然后右侧栏选择ViewSites,把站点加载进来。
然后左侧栏,选中target site。然后右侧选择ASP.NET Core Diagnostics
In my case, the target machine was missing the ASP.NET Core runtime itself.
Issue is resolved after installing the Hosting Bundle from .Net Core 3.1
Osama Rizwan
60111 gold badge77 silver badges1919 bronze badges
answered Feb 17, 2021 at 1:26
Alex Monkey
79711 gold badge99 silver badges14
回答3
In my case, the target machine was missing the ASP.NET Core runtime itself.
Issue is resolved after installing the Hosting Bundle from .Net Core 3.1
回答4
I had this issue on production after few days of deployment. Suddenly stopped working with the error (HTTP Error 500.31 - Failed to load ASP.NET Core runtime). In my case, I just repaired the installed version and it worked.
In my case, the target machine was missing the ASP.NET Core runtime itself.
Issue is resolved after installing the Hosting Bundle from .Net Core 3.1
In my case, the target machine was missing the ASP.NET Core runtime itself.
Issue is resolved after installing the Hosting Bundle from .Net Core 3.1