Client found response content type of 'text/html',but expected 'text/xml'
一. 需要把对应的程序池
由于项目需要.NET v2.0 的的因此需要设置正确的.net CLR 版本已经托管通道模式,
更改设置后,仍然提示相同的失败,
因为安装framework是在安装iis之前,asp.net没有注册造成的
二. 注册对应的asp.net
在cmd 里面执行:C:/Windows/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i
正常会是成功的,
但是有报错提示失败:
Note pkgmgr.exe has been deprecated please update your scripts to use dism.exe
三. 使用 dism.exe
新的windows server 环境可能没有对应的工具
update windows 到最新版本,然后,cmd 里面执行下面语句就可以了
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
参考网站:
https://blog.csdn.net/xiaoguang44/article/details/6443107
重新向上执行就可以了