當在windows server 2012R2上部署asp.net core項目時,需要安裝the Hosting Bundle,但當我們安裝完dotnet-hosting后,瀏覽站點應用程序池會自動關閉,net core runtime基於vc_redist.x64運行的,所以也就出現了此類錯誤需要安裝vc_redist.x64才能在iis上運行netcore項目
vc_redist.x64下載地址: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=48145
其他Windows參考官網說明,在 Windows 上安裝 .NET | Microsoft Docs
解決方案來自:windows server2012R2 上 .net core IIS 部署--應用程序池 自動停止 - 尼哈 - 博客園 (cnblogs.com)