码迷,mamicode.com
首页 > Web开发 > 详细

HTTP Error 502.5 - Process Failure 解决方案

时间:2018-09-30 00:24:12      阅读:929      评论:0      收藏:0      [点我收藏+]

标签:app   proc   部署   obj   deb   std   star   命令执行   trouble   

.netcore 2.1.4的程序部署到IIS后报以下错误:

=======================================================

HTTP Error 502.5 - Process Failure

Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port

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=808681

 

解决方案,选中应用程序池-->高级设置-->加载用户配置文件设为true.

技术分享图片

问题原因:IIS默认是不读取我们.netcore的配置文件appsettings.json,如下图命令执行donet path/application.dll时会出现错误提示:

技术分享图片

找到对应的行发现是因为找不到对应的配置导致Object reference not set to an instance of an object.

修改应用程序池的设置后,问题解决。

技术分享图片

 

HTTP Error 502.5 - Process Failure 解决方案

标签:app   proc   部署   obj   deb   std   star   命令执行   trouble   

原文地址:https://www.cnblogs.com/cglandy/p/cglandy_dotnetcore_1.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!