Technical support This forum is closed.
Version 1.x > Technical support > Data at the root level is invalid View modes: 
User avatar
Member
Member
suthin - 8/10/2006 4:18:10 PM
   
Data at the root level is invalid
Hi,

From my development server i added one page and after that i took the backup of my database and the files and uploaded to live site but there iam getting error while clicking on page template under development tab. here i am attching the error ...


====================Error===========
Data at the root level is invalid. Line 51, position 13.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: Data at the root level is invalid. Line 51, position 13.

Source Error:


Line 129: private XmlDocument GetXML() {
Line 130: XmlDocument xml = new XmlDocument();
Line 131: xml.Load( Functions.GetMetadataPath() + @"\_PageTemplates\pagetemplates.config" );
Line 132: return xml;
Line 133: }


Source File: e:\web\vqdevnet001\htdocs\cmsdesk\MetaDesigner\PageTemplateList.aspx.cs Line: 131

Stack Trace:


[XmlException: Data at the root level is invalid. Line 51, position 13.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +87
System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +127
System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() +1906670
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +503
System.Xml.XmlTextReaderImpl.Read() +38
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +31
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +162
System.Xml.XmlDocument.Load(XmlReader reader) +96
System.Xml.XmlDocument.Load(String filename) +157
Kentico.CMS.CMSDesk.PageTemplateList.GetXML() in e:\web\vqdevnet001\htdocs\cmsdesk\MetaDesigner\PageTemplateList.aspx.cs:131
Kentico.CMS.CMSDesk.PageTemplateList.DisplayPageTemplates() in e:\web\vqdevnet001\htdocs\cmsdesk\MetaDesigner\PageTemplateList.aspx.cs:96
Kentico.CMS.CMSDesk.PageTemplateList.Page_Load(Object sender, EventArgs e) in e:\web\vqdevnet001\htdocs\cmsdesk\MetaDesigner\PageTemplateList.aspx.cs:69
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

=====================

Thanks in advance
Suthin



User avatar
Guest
admin - 8/10/2006 7:51:07 PM
   
Re: Data at the root level is invalid
Hello,

Thank you for your message. It seems your e:\web\vqdevnet001\htdocs\cmsdesk\metadata\_pagetemplates\pagetemplates.config file is corrupted. Please send it to us to support@kentico.com so that we can find the reason.

Best Regards,