配置文件不是格式良好的 XML #2 [英] Configuration file is not well-formed XML #2

查看:31
本文介绍了配置文件不是格式良好的 XML #2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试修复 Windows Server 2008 上的 IIS 7 Web 服务器.我不知道是什么导致此配置变坏.关于从哪里开始寻找的任何想法?

I'm trying to fix an IIS 7 web server on Windows Server 2008. I don't know what caused this configuration to go bad. Any ideas on where to begin to look?

在 IIS 管理器的对象资源管理器中单击服务器节点时出错.

Error when clicking on the server node in the object explorer of IIS Manager.

There was an error when trying to connect.  Do you want to retype your credentials and try again?

Details:

Filename:

\?C:Windowssystem32inetsrvconfigapplicationHost.config
Line number: 1
Error: Configuration file is not well-formed XML

推荐答案

按照此操作,但不要将schema"文件夹,也不要将Export"文件夹从历史记录复制到当前文件夹.

Follow this, but do not copy the "schema" folder, nor the "Export" folder from the history to the current folder.

http://web.archive.org/web/20130110080607/http://jshidell.com/2012/03/27/fixing-corrupted-applicationhost-config-file-in-iis-7/

更多信息:

我能够重现这个问题!!错误地修改 Web.Config(参见下面问题的答案)最终导致了这个问题.因为我做了所有这些事情,所以我必须从服务器备份中恢复以修复所有内容,因为撤消所有内容太难了.坏坏坏微软!

I was able to reproduce this issue!! Modifying the Web.Config incorrectly (see answer to question below) ultimately caused this issue. Because I did all of this stuff, I'm having to restore from a server backup to fix everything since it'll be too difficult to undo everything. Bad Bad Bad Microsoft!

从 .NET 3.5 升级到 .NET 4.0 后未调用 ASP.NET 通用处理程序

这个问题与:

https://serverfault.com/questions/525443/how-to-uninstall-iis-from-windows-server-2008/525496#525496

经验教训:在部署 Web 服务器之前,在更改 IIS 7 配置或进行 Web.Config 更改之前,将内容复制出此文件夹.

Lesson Learned: Before a web server deployment, copy the contents out of this folder before ever changing IIS 7 configuration or making Web.Config changes.

C:Windowssystem32inetsrvconfig

这篇关于配置文件不是格式良好的 XML #2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆