iis 发布的项目提示内容格式错误

Client found response content type of 'text/html',but expected 'text/xml'

一. 需要把对应的程序池

31b7b3d2e7d1a17bf78791bf88dad680b25.jpg

由于项目需要.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://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

重新向上执行就可以了

转载于:https://my.oschina.net/u/3556610/blog/1837574

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值