.NET Core5 MVC/WebAPI - HTTP Error 500.30 - ASP.NET Core app failed to start
时间:2021-08-20 15:17:31
收藏:0
阅读:64

程序中不报错,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.
解决方案
查看最近新建的类/文件,看看它们的引用中有没有出现一行只有一个;符号的

我在把它去掉之后就可以正常访问了...这个就很迷- -
原文:https://www.cnblogs.com/QuXingBai-Blog/p/15166064.html
评论(0)