gpt4 book ai didi

iis-7 - HTTP 错误 500.19,web.config 中的 IIS7 "Malformed XML"为 0x8007000d

转载 作者:行者123 更新时间:2023-12-03 01:15:01 26 4
gpt4 key购买 nike

我被迫从出厂默认值重建我的机器。一切都应该是相同的,IIS 版本 (7.5)、操作系统 (Windows 7) 和我的网站文件。但是,情况有所不同,因为在配置我的网站并在浏览器中拉出本地网站后,我收到以下错误...

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Error Code 0x8007000d

当我 look up error code 0x800700d它告诉我...

Analysis: This problem occurs because the ApplicationHost.config file or the Web.config file contains a malformed XML element. To resolve this problem, see Resolution 1.

然后提供解决方案...

Suggested Solution: Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file.

但是,我没有看到格式错误的 XML,并且当我完全删除 web.config 文件时,网站会加载,但 URL 重写不起作用(显然)。此外,即使我从 web.config 文件中删除所有 XML,将其留空,我也会收到相同的错误。 web.config 文件根本存在这一事实似乎有问题。

作为引用,这是我的 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>

有人对如何解决这个问题有任何想法吗?

最佳答案

您是否记得重新安装 rewrite module ?默认情况下,它不包含在 IIS 7.5 中。

除此之外,这里还有一个 similar question - 我认为关于畸形的部分是转移注意力。

关于iis-7 - HTTP 错误 500.19,web.config 中的 IIS7 "Malformed XML"为 0x8007000d,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14132029/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com