在windows server 2012 上安裝完dotnet-win-x64.1.1.1.exe 和 DotNetCore.1.0.4_1.1.1-WindowsHosting.exe后,沒有重啟服務器,訪問站點報以上錯誤,解決辦法要么重啟,要么執行以下兩條命令:
net stop was /y
net start w3svc
https://docs.microsoft.com/en-us/aspnet/core/publishing/iis
Restart the system or execute net stop was /y followed by net start w3svc from a command prompt to pick up a change to the system PATH.