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
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.