简体   繁体   English

HTTP 错误 500.31 - 无法加载 ASP.NET 核心运行时,尝试在 nuget 安装 3.1.0 但失败

[英]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.

相关问题 Asp.net 核心 6 / 脚手架失败,无法加载项目信息 - Asp.net core 6 / Scaffolding failed, Could not load information for project IIS .NET Core 5.0 MVC API - 获取 HTTP 错误 500.30 - ASP.NET Core 应用程序无法启动 - IIS .NET Core 5.0 MVC API - Getting HTTP Error 500.30 - ASP.NET Core app failed to start 在 Asp.Net core 中上传图片失败 - Failed to upload an image in Asp.Net core 加载资源失败:服务器在 asp.net 内核中使用谷歌图表时响应状态为 500 () - Failed to load resource: the server responded with a status of 500 () while using google charts in asp.net core ASP.NET Core - 部署后身份验证错误 - IDX10503:签名验证失败 - ASP.NET Core - Auth error after deploy - IDX10503: Signature validation failed “passwordResetLink”链接在 asp.net 核心中生成失败 - "passwordResetLink" link failed to generate in asp.net core 无法在 asp.net 内核中正确显示背景图像 - Failed to shown background image properly in asp.net core 无法加载资源:服务器以MVC ASP.NET的状态响应500(内部服务器错误) - Failed to load resource: the server responded with a status of 500 (internal server error) for MVC ASP.NET 加载资源失败:服务器响应状态为500(内部服务器错误)asp.net - Failed to load resource: the server responded with a status of 500 (Internal Server Error) asp.net XUnit 测试失败(ASP.NET Core 7 MVC) - Failed XUnit tests (ASP.NET Core 7 MVC)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM