Tuesday, 12 March 2013

ASP.NET: Configuration file is not well-formed XML- 0x8007000d


HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information
ModuleIIS Web Core
NotificationBeginRequest
HandlerNot yet determined
Error Code0x8007000d
Config ErrorConfiguration file is not well-formed XML
Config File\\?\C:\inetpub\wwwroot\BasicLayout\web.config

Cause of error message 1

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.

Resolution 1

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

I mistyped like this: <connectionString="server=(offmah)\SqlExpress; Integrated Security=True; Database=BalloonShop" providerName="System.Data.SqlClient">  </connectionStrings>
It should have been like this:
<connectionStrings>    <clear/>  <add name="MyDbConnectionString" connectionString="server=(local)\SqlExpress; Integrated Security=True; Database=WebRegister" providerName="System.Data.SqlClient"/>  </connectionStrings>





No comments:

Post a Comment