HTTP Error 500.31 - Failed to load ASP.NET Core runtime 解决方案


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.

Specific error detected by ANCM:

You must install or update .NET to run this application. App: C:\Users\Administrator\source\repos\NetCoreDatabase\WebApplication1\bin\Debug\net5.0\WebApplication1.dll Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '5.0.0' (x64) .NET location: C:\Program Files\dotnet\ The following frameworks were found: 2.1.28 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] 3.1.18 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] 3.1.31 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] 6.0.11 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.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

 

解决方案:

.NET 5.0运行环境安装包下载

https://www.cscode.net/archive/newdoc/361754593390597.html

 

版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
C/S框架网
上一篇:.NET 5.0运行环境安装包下载
下一篇:ServiceLifetime 服务的生命周期详解
评论列表

发表评论

评论内容
昵称:
关联文章

HTTP Error 500.31 - Failed to load ASP.NET Core runtime 解决方案
手把手搭建一个ASP.NET Core Web应用程序(默认HTTPS协议)
ASP.NET Core中使用滑动窗口限流
ASP.NET WebApi缺少System.Web.Http.Cors引用解决方案
安装VS2008出错—Failed to install Web Authoring Component
To run this application ,you must install .NET解决方案
ASP.NET Core web API中使用Swagger/OpenAPI(Swashbuckle)
打开VS解决方案出现 Unknown Hard Error 错误
提交GIT服务器失败,提示Git failed with a fatal error.Permission denied,.vs/Server/sqlite3/db.lock
解决方案:(Error 13 未能找到文件 \Properties\licenses.licx)
How to changing the asp.net development server port?
运行ASP.NET 自承载WebApi服务器报错:未能加载文件或程序集System.Web.Http或它的某一个依赖项
.NET5 Core 关于LINQ查询使用DateDiff解决方案
vs编译ASP.NET提示失败1个,error CS0246: 未能找到类型或命名空间名“CSFrameworkV5”(是否缺少 using 指令或程序集引用?
Assembly.Load, LoadFrom加载程序集无法释放资源的解决方案
An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure()'
HTTP状态码大全-System.Net.HttpStatusCode
打开设计窗体报错:To prevent possible data loss before loading the designer
C#/.NET Core简单认识
安装GIT msi 程序出现the error code is 2503解决方案