Asp.Net Core 发布异常 502.5 [The Application process failed to Start]

花门楼前见秋草,岂能贫贱相看老。这篇文章主要讲述Asp.Net Core 发布异常 502.5 [The Application process failed to Start]相关的知识,希望能为你提供帮助。
 
 

Asp.Net Core 发布异常 502.5 [The Application process failed to Start]

文章图片

出现这个问题大部分时间都是因为发布时,少打包了一些文件.. 
只打包了.Net Core的运行时库,没有打包Asp.Net Core 运行时.. 
需要在打包指导文件中加入以下节点
< PropertyGroup> < PublishWithAspNetCoreTargetManifest> false< /PublishWithAspNetCoreTargetManifest> < /PropertyGroup>

打包指导文件的位置在
Asp.Net Core 发布异常 502.5 [The Application process failed to Start]

文章图片

将内容加入到文件, 放在最后即可..如下图..
Asp.Net Core 发布异常 502.5 [The Application process failed to Start]

文章图片

重新打包..发布.. 
【Asp.Net Core 发布异常 502.5 [The Application process failed to Start]】 

    推荐阅读