我被迫从工厂违约中重建我的机器。一切都应该是相同的,IIS版本(7.5),操作系统(Windows 7),和我的网站文件。但是,有些东西是不同的,因为在配置我的网站并在我的浏览器中拔出本地站点后,我得到以下错误.
HTTP错误500.19 -内部服务器错误请求页无法访问,因为该页的相关配置数据无效。错误代码0x8007000d
当我查找错误代码0x800700d它告诉我..。
分析:出现此问题是因为ApplicationHost.config文件或Web.config文件包含格式错误的ApplicationHost.config元素。若要解决此问题,请参见解决方案1。
然后提出一个解决方案..。
建议的解决方案:从ApplicationHost.config文件或Web.config文件中删除格式错误的XML元素。
然而,我没有看到格式错误的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>有人对如何解决这个问题有什么想法吗?
发布于 2013-01-04 01:33:35
你记得重新安装重写模块吗?它默认不包含在IIS 7.5中。
除此之外,这里还有一个相似问题 --我认为关于畸形的部分是一条红鲱鱼。
发布于 2015-06-13 19:30:04
在经历了这么多痛苦之后,我可以解决这个错误。我的实际原因是我在配置中使用了一些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>发布于 2013-04-19 10:11:42
我和您寻找XML的情况是一样的。我找到了解决办法。在web.config文件中,在文件的顶部有一个xml部分。删除下面的内容,这解决了我的问题,以后可以在网站上打开。
<system.net>
<defaultProxy>
<proxy autoDetect="true" />
</defaultProxy>
https://stackoverflow.com/questions/14132029
复制相似问题