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 沒有啟動 丟。。。

然后最重要的是瀏覽器 全部關閉 有點坑呀  好像占用端口了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM