部署WebApi错误:HTTP Error 500.31 - Failed to load ASP.NET Core runtime


部署WebApi错误:HTTP Error 500.31 - Failed to load ASP.NET Core runtime

错误信息

 

WebApi应用部署到IIS服务器,在浏览器测试地址:

http://您的服务器IP:16888/swagger/index.html

或:http://www.yourdomain.com:16888/swagger/index.html

 

出现错误:

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.

-开发框架文库

解决方案

打开cmd,输入:dotnet --info

查看服务器是否安装 ASP.NET Core

部署WebApi错误:HTTP Error 500.31 - Failed to load ASP.NET Core runtime

 

安装 ASP.NET Core运行环境:

https://www.cscode.net/archive/webapi-netcore-v3/497331548192773.html

需要下载4个文件,全部安装:

部署WebApi错误:HTTP Error 500.31 - Failed to load ASP.NET Core runtime

 重要

同时下载.NET Core 6.0的4个文件并安装!!!!

下载地址:https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0

 

版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
C/S框架网
评论列表

发表评论

评论内容
昵称:
关联文章

部署WebApi错误HTTP Error 500.31 - Failed to load ASP.NET Core runtime
HTTP Error 500.31 - Failed to load ASP.NET Core runtime 解决方案
HTTP Error 500.31 - Failed to load ASP.NET Core runtime,Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
Failed to load APl definition. response status is 500 /swagger/vl/swagger.json
CS软件授权注册系统-发布/部署WebApi服务器(IIS+.NET8+ASP.NETCore)
部署ASP.NET Core WebApi应用服务器(IIS .NET7)
手把手搭建一个ASP.NET Core Web应用程序(默认HTTPS协议)
ASP.NET Core中使用滑动窗口限流
.NET8/ .NETCore /ASP.NETCore 部署WebApi到IIS服务器需要安装的运行环境
ASP.NET WebApi缺少System.Web.Http.Cors引用解决方案
运行ASP.NET 自承载WebApi服务器报错:未能加载文件或程序集System.Web.Http或它的某一个依赖项
ASP.NET Core web API中使用Swagger/OpenAPI(Swashbuckle)
安装VS2008出错—Failed to install Web Authoring Component
WebApi日期解析错误:The JSON value could not be converted to System.Nullable`1[System.DateTime].
You must install .NET Desktop Runtime to run this application
HTTP状态码大全-System.Net.HttpStatusCode
How to changing the asp.net development server port?
.NETCore WebApi运行报错:System.AggregateException:“Some services are not able to be constructed
原创WebApi框架:采用HTTPS协议SelfHosting,Windows服务承载WebApi服务
1.1 什么是ASP.NET / WebAPI / MVC?