HTTP Error 502.5 - Process Failure 解決方案


.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.

修改應用程序池的設置后,問題解決。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM