This has been reported before, but that issue has been closed more than 3 years ago, so I'm reporting it here as a new issue.
I'm facing this problem when deserializing a layout. The exact exception is:
System.InvalidOperationException
HResult=0x80131509
Message=There is an error in XML document (68, 4).
Source=System.Xml
StackTrace:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at Xceed.Wpf.AvalonDock.Layout.Serialization.XmlLayoutSerializer.Deserialize(TextReader reader)
at Xceed.Wpf.AvalonDock.Layout.Serialization.XmlLayoutSerializer.Deserialize(String filepath)
at BD_Desktop.MainWindow._Lambda$__5-2(ApplicationMessage`1 m) in F:\Desktop\David\XPressBadgeWPF\BD_Desktop\MainWindow.xaml.vb:line 48
This exception was originally thrown at this call stack:
System.Xml.XmlReader.ReadEndElement()
Xceed.Wpf.AvalonDock.Layout.LayoutRoot.ReadXml(System.Xml.XmlReader)
System.Xml.Serialization.XmlSerializationReader.ReadSerializable(System.Xml.Serialization.IXmlSerializable, bool)
<Unknown Method>
Inner Exception 1:
XmlException: 'Element' is an invalid XmlNodeType. Line 68, position 4.
I'm using the latest NuGet package I guess (4.5). Here is the XML file:
I'm facing this problem when deserializing a layout. The exact exception is:
I'm using the latest NuGet package I guess (4.5). Here is the XML file: