[英]HTTP Error 500.31 - Failed to load ASP.NET Core runtime , tried to install 3.1.0 in nuget but failed
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. HTTP 错误 500.31 - 加载失败 ASP.NET 核心运行时 此问题的常见解决方案:未找到指定版本的 Microsoft.NetCore.App 或 Microsoft.AspNetCore.App。 Specific error detected by ANCM: It was not possible to find any compatible framework version The framework 'Microsoft.AspNetCore.App', version '3.1.0' (x64) was not found.
ANCM 检测到的特定错误:无法找到任何兼容的框架版本找不到框架“Microsoft.AspNetCore.App”,版本“3.1.0”(x64)。 - The following frameworks were found: 6.0.1 at [C:\Program Files\do.net\shared\Microsoft.AspNetCore.App] You can resolve the problem by installing the specified framework and/or SDK. The specified framework can be found at: - https://aka.ms/do.net-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=win10-x64 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
- 发现以下框架:6.0.1 at [C:\Program Files\do.net\shared\Microsoft.AspNetCore.App] 您可以通过安装指定的框架和/或SDK来解决问题。指定的框架可以是发现于:- https://aka.ms/do.net-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=win10-x64故障排除步骤:检查系统事件日志中的错误消息 启用日志记录应用程序进程的标准输出消息 将调试器附加到应用程序进程并检查有关更多信息,请访问: https://go.microsoft.com/fwlink/?LinkID=2028526
To run an ASP.NET Core application on a machine, the appropriate runtime (or SDK) must be installed on that machine.要在机器上运行 ASP.NET 核心应用程序,必须在该机器上安装适当的运行时(或 SDK)。 In your case, you want to run a .NET Core 3.1 application on a machine that has only .NET 6.0 installed.
在您的情况下,您希望在仅安装了 .NET 6.0 的计算机上运行 .NET Core 3.1 应用程序。 Therefore, to run your ASP.NET Core 3.1 application, you must download and install the appropriate ASP.NET Core runtime (or for a Windows server with IIS, the appropriate hosting bundle).
因此,要运行 ASP.NET Core 3.1 应用程序,您必须下载并安装适当的 ASP.NET Core 运行时(或者对于具有 IIS 的 Windows 服务器,适当的托管包)。
You can also solve this in.runtimeconfig.json file也可以解决这个in.runtimeconfig.json文件
You can set your current version manually.您可以手动设置当前版本。
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "6.0.1"
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.