HTTP Error 502.5 - Process Failure
.net core 在iis部署遇到502错误:HTTP Error 502.5 - Process FailureCommon causes of this issue:The application process failed to startThe application process started but then stoppedThe application process sta
·
.net core 在iis部署遇到502错误:
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
解决方案:
1、选中应用程序池-->高级设置-->加载用户配置文件设为true.

2、在Web.config中找到<aspNetCore processPath="dotnet" arguments=".\OpenAuth.WebApi.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
把stdoutLogEnabled设置为true,在stdoutLogFile配置的文件夹logs下找到log文件,点开查看具体错误。我的是少了log4net.config配置文件,发布的时候没有生成,从源代码中拷贝过去就可以了

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)