IIS 7 - HTTP 错误 500.19,在 web.config 中的 IIS7 "Malformed XML"上出现0x8007000d



我被迫从出厂默认值重建我的机器。一切都应该是一样的,IIS版本(7.5),操作系统(Windows 7),和我的网站文件。然而,有些东西是不同的,因为在配置我的网站并在浏览器中拉动本地网站后,我得到以下错误…

HTTP Error 500.19 - Internal Server Error请求的页面无法访问,因为该页面的相关配置数据无效。错误码0x8007000d

当我查找错误代码0x800700d时,它告诉我…

Analysis:出现此问题是因为ApplicationHost. exe配置文件或Web。配置文件包含格式错误的XML元素。要解决此问题,请参见解决方案1。

然后提供…的分辨率

处理建议:删除ApplicationHost中格式错误的XML元素。配置文件或从Web获取。配置文件。

然而,我没有看到格式化的XML,当我删除web。配置文件,网站加载,但URL重写不工作(显然)。此外,即使我从网络上删除所有XML。配置文件,留下空白,我得到同样的错误。它似乎有一个问题,那就是网络。配置文件是否存在

作为参考,这里是我的web.config的内容…

<?xml version="1.0" encoding="UTF-8"?>
<!-- this file can be deleted if you're not planning on using URL rewriting with IIS 7. -->
<!-- you can add your own files and folders that should be excluded from URL rewriting by adding them to the "pattern" below. -->
<!-- please read the online documentation on http://cfwheels.org for more information about URL rewriting. -->
<!-- SET ENABLED TO TRUE BELOW TO TURN ON THE URL REWRITING RULES -->
<configuration>
<system.webServer>
    <rewrite>
        <rules>
            <rule name="ColdFusion on Wheels URL Rewriting" enabled="true">
                <match url="^(.*)$" ignoreCase="true" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{SCRIPT_NAME}" negate="true" pattern="^/(flex2gateway|jrunscripts|cfide|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm)($|/.*$)" />
                </conditions>
                <action type="Rewrite" url="/rewrite.cfm/{R:1}" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>
</configuration>
谁有什么办法解决这个问题?

您记得重新安装重写模块吗?默认情况下,IIS 7.5不包含它。

除此之外,这里有一个类似的问题——我认为关于畸形的部分是转移注意力。

经过这么多的痛苦,我可以解决这个错误。对我来说,实际的原因是我在配置中使用了一些url重写。删除后错误就消失了。下面是我从web.config中删除的代码。

  <serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="10:00:00"/>
<rewrite>
  <rules>
    <rule name="HTTP to HTTPS redirect" stopProcessing="true">
      <match url="(.*)"/>
      <conditions>
        <add input="{HTTPS}" pattern="off" ignoreCase="true"/>
      </conditions>
      <action type="Redirect" redirectType="Permanent" url="https://wikigurus.com/{R:1}"/>
    </rule>
  </rules>
</rewrite>

我的情况与您寻找XML的情况相同。我找到了解决办法。在网络上。配置文件,在文件的顶部,有一个XML部分。删除下面的内容,这样就解决了我的问题,以后网站就可以打开了。

<system.net>
<defaultProxy>
  <proxy autoDetect="true" />
</defaultProxy>

这个问题也发生在我身上…

<?xml version="1.0" encoding="UTF-8"?>

从你的网页上删除这一行。配置文件。

是一个格式错误的XML元素。

删除或注释

创建新的站点集合并替换新的web。配置到损坏的一个,为我工作的想法

请安装两个exe文件"dotnet-sdk-3.1.102-win-x64"one_answers"dotnet-hosting-3.1.1-win".

相关内容

最新更新