.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