Net Core教程

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

本文主要是介绍.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>   重新编译发布解决。

 

 

 

 

这篇关于.net5服务在centos上启动错误的问题记录(code=exited, status=140)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!