介尘部落

文学|音乐|休闲娱乐|计算机技术|地球科学|社会学——知识成就命运


DotNet5.0 项目更新后报错500处理方法

在对项目进行了从dotnetcore3.1到dotnet5.0的更新,发布到服务器iis后,webapi相应错误500,请求出错。

HTTP Error 500.0 - ANCM In-Process Handler Load Failure
Common causes of this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
The in process request handler, Microsoft.AspNetCore.Server.IIS, was not referenced in the application.
ANCM could not find dotnet.
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
For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028526

服务器已经安装了dotnet5 的runtime,iis web应用下开启了日志,显示是没找到对应的runtime。所以找不到问题出在哪,服务器已经重启过后问题依然存在。所以最后只能再次安装了dotnet5 sdk。然后没有重启服务器,请求Api已经正常了。

问题虽然这样解决了,但为什么装runtime 还得装sdk,搞不明白。似乎之前的版本也是如此情况。

阅读全文
公众号-介尘阅读时光
赞赏支持

0 Responses to “DotNet5.0 项目更新后报错500处理方法”

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)