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

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

问题描述

我试图修复一个IIS 7 web服务器在Windows Server 2008上。我不知道是什么导致这种配置变坏。

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:\Windows\system32\inetsrv\config\applicationHost.config
Line number: 1
Error: Configuration file is not well-formed XML

推荐答案

按照这样,但不要将schema文件夹或导出文件夹从历史记录复制到当前文件夹。

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

http:// jshidell。 com / 2012/03/27 / fixing-corrupted-applicationhost-config-file-in-iis-7 /

更多信息:

我能够重现这个问题!不正确地修改Web.Config(请参阅下面的问题的答案)最终导致此问题。因为我做了所有这些东西,我不得不从服务器备份恢复,以修复一切,因为它将是太难以撤消一切。错误错误Microsoft!

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 .NET通用处理程序在.NET 3.5到.NET 4.0升级后无法调用

此问题与以下相关:

http://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:\Windows\system32\inetsrv\config\

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

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