相关疑难解决方法(0)

配置文件格式不正确XML#2

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

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

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
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

xml iis configuration iis-7 web-config

17
推荐指数
2
解决办法
6万
查看次数

用于在IIS 7中重建applicationHost.config的命令

有没有办法使用Windows命令在IIS 7中重建applicationHost.config文件?或者,如果您可以通过修改此文件来帮助我解决问题,那也没关系.将此文件与其他服务器进行比较时,我注意到在删除站点和几个应用程序池后缺少或不同的非常重要的部分.

我绝不是IIS 7的专家,但我已经使用它7年了.我有信心为新网站配置执行了所有正确的步骤,它仍然给我这个错误,"401.1 "You are not authorized to view this page. You do not have permission to view this directory or page using the credentials that you supplied."

C:\Windows\System32\inetsrv\config\applicationHost.config
Run Code Online (Sandbox Code Playgroud)

这发生在IIS APPPOOL {app pool user}不存在的机器上,所以我们从未使用过此用户,就像我通常在配置权限时那样.然而,我们上周在IIS_IUSRS(在此组中使用IUSR)中添加了适当的权限,并且该网站运行正常.我们正在使用Windows身份验证,并且所有其他身份验证方法都已关闭.没有虚拟目录.我们使用的是.NET 4.0,Classic和32位应用程序(在高级设置下).

我们必须通过在绑定的"C:\ Windows\System32\inetsrv"中执行以下命令来手动更新主机名,因为当VeriSign SSL证书添加到绑定时,IIS会使主机名变灰.

appcmd set site /site.name:"himc" /+bindings.[protocol='https',bindingInformation='*:443:subdomain.domain.com']
Run Code Online (Sandbox Code Playgroud)

缺少"坏"Web服务器上的部分:

1 - 存在于"好"框中,在"坏"框中丢失

<customMetadata>
    <key path="LM/W3SVC/INFO">
        <property id="4012" dataType="String" userType="1" attributes="Inherit" value="NCSA Common Log File Format,Microsoft IIS Log File Format,W3C Extended Log File Format,ODBC Logging" />
        <property id="2120" dataType="MultiSZ" userType="1" attributes="None" value="400,0,,,0&#xA;" />
    </key> …
Run Code Online (Sandbox Code Playgroud)

iis-7 windows-server-2008 applicationhost http-status-code-401

16
推荐指数
2
解决办法
3万
查看次数