我不得不從出廠默認值重建我的機器。一切都應該是一樣的,IIS版本(7.5),操作系統(Windows 7)和我的網站文件。但是,一些事情,因爲配置我的網站,並在拉我的瀏覽器,我得到以下錯誤的本地網站上去後是不同的...IIS7上的HTTP錯誤500.19 web.config中的「格式錯誤的XML」
HTTP錯誤500.19 - 內部服務器錯誤請求的頁面無法訪問,因爲該頁面的相關配置數據無效。錯誤代碼0x8007000d
當我look up error code 0x800700d它告訴我...
分析:出現此問題是因爲ApplicationHost.config文件或Web.config文件包含格式不正確的XML元素。要解決此問題,請參閱解決方案1.
然後提供的分辨率...
建議的解決方案:從ApplicationHost.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>
任何有關於如何解決此問題的任何想法?
我們有兩個不喜歡'encoding =「UTF8」'的服務器。另一臺服務器沒有任何問題。仍然不知道爲什麼。 – Fried