net core HTTP Error 500.31 - Failed to load ASP.NET Core runtime HTTP Error 500.30 - ASP.NET Core

 

问题一:

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.
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

原因

故障原因:
本机发布时的.netcore版本和服务端.netcore版本不一致

解决方法:
修改发布的.netcore版本

或者同步服务器的环境 Download .NET 5.0 (Linux, macOS, and Windows)

问题二:

HTTP Error 500.30 - ASP.NET Core app failed to start
Common solutions to this issue:
The app failed to start
The app started but then stopped
The app started but threw an exception during startup
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

 于是我检查了 事件查看器>Windows日志>Appliction> 第一次查看错了 错误日志  查看的是如下日志,我以为是CLR 的问题,折腾了一通发现并没有解决问题。

 redis 没有启动 丢。。。

然后最重要的是浏览器 全部关闭 有点坑呀  好像占用端口了

应用程序-特定 权限设置并未向在应用程序容器 不可用 SID (不可用)中运行的地址 LocalHost (使用 LRPC) 中的用户 NT SERVICE\SQLSERVERAGENT授予针对 CLSID 为 的 COM 服务器应用程序的 本地 激活 权限。此安全权限可以使用组件服务管理工具进行修改。 - 蓝涩街灯 - 博客园


版权声明:本文为cao919原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。