Client found response content type of 'text/html',but expected 'text/xml'html
因爲項目須要.NET v2.0 的的所以須要設置正確的.net CLR 版本已經託管通道模式,windows
更改設置後,仍然提示相同的失敗,app
由於安裝framework是在安裝iis以前,asp.net沒有註冊形成的asp.net
在cmd 裏面執行:C:/Windows/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i工具
正常會是成功的,網站
可是有報錯提示失敗:spa
Note pkgmgr.exe has been deprecated please update your scripts to use dism.exe.net
新的windows server 環境可能沒有對應的工具server
update windows 到最新版本,而後,cmd 裏面執行下面語句就能夠了xml
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
參考網站:
https://blog.csdn.net/xiaoguang44/article/details/6443107
從新向上執行就能夠了