.net core IIS 部署 應用程序池停止並報錯503


已安裝 Hosting Bundle

https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-3.1.2-windows-hosting-bundle-installer


創建無托管的 應用程序池


結果就是IIS日志報錯

應用程序池停止,瀏覽頁面顯示503…

報錯信息如下:

Warning:A listener channel for protocol 'http' in worker process '3260' serving application pool 'apsnetcode3' reported a listener channel failure.  The data field contains the error number.

Error:Application pool 'apsnetcode3' is being automatically disabled due to a series of failures in the process(es) serving that application pool.


查了半天也找不出原因(開發設備上部署正常)


最后發現 Hosting Bundle 需要依賴 C++ …

Download the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. The following updates are the latest supported Visual C++ redistributable packages for Visual Studio 2015, 2017 and 2019. Included is a baseline version of the Universal C Runtime see MSDN for details.

安裝C++后恢復正常:https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads


免責聲明!

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



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