Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 500.19 with 0x8007000d on IIS7 "Malformed XML" in web.config

Tags:

iis-7

cfwheels

I'm forced to rebuild my machine from factory default. Everything should be the same, IIS version (7.5), OS (Windows 7), and my website files. However, something is different because after configuring my website and pulling the local site up in my browser, I get the following error...

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

When I look up error code 0x800700d it tells me...

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.

Then offers a resolution of...

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

However I see no malformed XML, and when I remove the web.config file altogether, the site loads but URL Rewriting doesn't work (obviously). Furthermore, even if I delete all XML from the web.config file, leaving it blank, I get the same error. It seems to have a problem with the fact that the web.config file exists at all.

For reference, here's the contents of my 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> 

Anyone have any ideas about how to resolve this issue?

like image 905
Chris Geirman Avatar asked Jan 03 '13 01:01

Chris Geirman


People also ask

How do I fix 500.19 error in IIS?

The error message itself points out the location of the duplicate entries. To resolve this problem, delete the duplicate entry in the ApplicationHost. config file for the authorization rule.

How do you fix HTTP Error 500.19 Internal server Error the requested page Cannot be accessed because the related configuration data for the page is invalid?

Solution. Open IIS Manager, select root node( the hosting server), in the middle panel double click Feature Delegation. In right panel select Custom Site Delegation..., In upper part of middle panel, click the drop down list and select your site.

What is 500. 19 Error?

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

Where is the ApplicationHost config file located?

The location of the file is currently in the %windir%\system32\inetsrv\config directory.


1 Answers

Did you remember to reinstall the rewrite module? It's not included with IIS 7.5 by default.

Beyond that, here is a similar question - I think the part about malformed is a red herring.

like image 138
JohnW Avatar answered Oct 16 '22 04:10

JohnW