.net5服务在centos上启动错误的问题记录(code=exited, status=140)

.net5服务程序,同事接手维护,做了次升级,结果发现服务起不来了。

去服务器上查看日志详情: journalctl -xe  

显示:code=exited, status=140 ,某个dll引用了MySql.Data.dll对应的版本文件找不到,同时提示:“An assembly specified in the application dependencies manifest was not found”

问题是部署环境这个文件肯定是存在的,最后修改项目配置文件.csproj,增加 <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>   重新编译发布解决。

 

 

 

 

posted @ 2022-06-28 12:41  寒冰之光  阅读(131)  评论(0编辑  收藏  举报