.NET Core5 MVC/WebAPI - HTTP Error 500.30 - ASP.NET Core app failed to start


image

程序中不報錯,VisualStudio正常運行,但就是500

日志

每次打開時都會在事件查看器中發現兩條新異常日志

第一個:Application '/LM/W3SVC/2/ROOT' with physical root 項目路徑failed to load coreclr. Exception message: CLR worker thread exited prematurely

第二個:Application '/LM/W3SVC/2/ROOT' with physical root 項目路徑has exited from Program.Main with exit code = '0'. Please check the stderr logs for more information.

解決方案

查看最近新建的類/文件,看看它們的引用中有沒有出現一行只有一個;符號的
image
我在把它去掉之后就可以正常訪問了...這個就很迷- -


免責聲明!

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



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