環境是windows Server2012
問題的原因是缺少文件:api-ms-win-crt-runtimel1-1-0.dll,
dotnet 啟動程序失敗。

其次
2012 對應》Windows8-RT-KB2999226-x64.msu
下載地址:
更多參考:
https://stackoverflow.com/questions/38624453/asp-net-core-1-0-on-iis-error-502-5
關於api-ms-win-crt-runtimel1-1-0.dll缺失的解決方案:
http://blog.csdn.net/huqiao1206/article/details/50768481
下載最新版的Windows Server Hosting:
https://www.microsoft.com/net/download/core#/runtime
原文:http://www.cnblogs.com/tianma3798/p/7434660.html
我是直接copy過來的,僅作記錄,因為出現這個問題,照着這位大佬的弄好了
還有,發布.net core到iis的時候,需要照着這位大佬,https://www.cnblogs.com/uptothesky/p/6038989.html
安裝 上面的Windows Server Hosting,然后命令行執行
輸入
net stop was /y
運行完后再運行
net start w3svc
