IIS 配置文件的 XML 格式不正确 applicationHost.config
当打开 IIS 管理器,或配置网站时提示错误:配置文件的 XML 格式不正确
且是 applicationHost.config 的问题,那么肯定是 applicationHost.config 被破坏,IIS 就崩溃。

解决办法就是恢复 applicationHost.config
先检查 C:\Windows\System32\inetsrv\config 目录下的 applicationHost.config 文件,最好备份一份
使用 IIS 提供的 AppCmd.exe 的 restore 功能恢复 applicationHost.config
运行命令提示符 键入 cd %windir%\system32\inetsrv,然后按 Enter

运行 appcmd list backup 命令来显示所有可用的备份。然后我们选择一个备份并运行 appcmd restore backup <backup name>

版权声明:
作者:亦灵一梦
链接:https://blog.haokaikai.cn/2018/houduan/iis/98.html
来源:开心博客
文章版权归作者所有,未经允许请勿转载。
THE END
1
二维码
海报
IIS 配置文件的 XML 格式不正确 applicationHost.config
当打开 IIS 管理器,或配置网站时提示错误:配置文件的 XML 格式不正确
且是 applicationHost.config 的问题,那么肯定是 applicationHost.config 被破坏,IIS……
