iis 發佈的項目提示內容格式錯誤

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

二. 註冊對應的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

三. 使用 dism.exe

新的windows server 環境可能沒有對應的工具server

update windows 到最新版本,而後,cmd 裏面執行下面語句就能夠了xml

 DISM.exe /Online /Cleanup-image /Scanhealth

DISM.exe /Online /Cleanup-image /Restorehealth

參考網站:

https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-winapps/error-note-pkgmgrexe-has-been-deprecated-please/57e1cc4b-efda-4e00-9ae8-7a6735efb0c2

https://blog.csdn.net/xiaoguang44/article/details/6443107

從新向上執行就能夠了

相關文章
相關標籤/搜索