System.Xml.XmlException: Root element is missing.

0 Answers 253 Views
General Discussions Report Designer (standalone)
A
Top achievements
Rank 1
A asked on 13 Mar 2023, 08:19 AM

I'm running Telerik Reporting 16.2.22.1109 on windows 10 and just got the unexpected error during work:


System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at Telerik.Reporting.Serialization.ObjectReader.Deserialize(IResourceHandler handler)
   at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(TextReader reader, IResourceHandler resourceHandler)
   at Telerik.ReportDesigner.Packages.ReportDesigner.Serialization.XmlDocDataHandler.DeserializeReport(IDesignerLoaderHost targetHost)
   at Telerik.ReportDesigner.Packages.ReportDesigner.Serialization.ReportDocumentDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)

 

What caused this and how to fix it?

 

AD

Dimitar
Telerik team
commented on 15 Mar 2023, 09:57 AM

Do you use SubReports? If yes, you may have hit the issue from this feedback item - SubReport errors out when using XML Report Source - Root element is missing. (telerik.com). Please try the workaround suggested in the post.

If you are using external stylesheets, please also check whether the stylesheet XML file is not empty(0 bytes) as that is also known to produce such a problem.

If the above does not help, please send the report(s) where this problem is reproducible alongside the data necessary to preview and debug them locally.

No answers yet. Maybe you can help?

Tags
General Discussions Report Designer (standalone)
Asked by
A
Top achievements
Rank 1
Share this question
or