記:ASP.NET Core開發時部署到IIS上出現HTTP Error 502.5 - Process Failure的解決方案

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

 

鄙人建站比較喜歡一開始就部署到IIS上,用VS內置IISExpress就渾身難受。如今使用.net core發現部署到IIS上後報502錯誤,網上查到的文章都是介紹:web

項目版本和SDK版本不一致致使的;
IIS程序池CLR版本設置無託管代碼; app

程序池-高級-加載用戶配置文件設爲true;this

等等,嘗試一通沒卵用。.net

後來發現一篇文章說要給VS安裝開發時IIS支持:debug

https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/iis/development-time-iis-support?view=aspnetcore-2.1orm

因而按文章介紹的操做一波終於OK了,運行起來以後,web.config裏面配置會自動更改,加了個IIS啓動:blog

相關文章
相關標籤/搜索