Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

3
Votes

In Version v18.4.0.30 occurs the following error:

System.InvalidCastException: Unable to cast object of type 'System.Xml.Linq.XText' to type 'System.Xml.Linq.XElement'.

at Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseMetaDataProperties(PartContainer partContainer)
   at Syncfusion.DocIO.DLS.Convertors.DocxParser.BindCustomXmlData(PartContainer partContainer)
   at Syncfusion.DocIO.DLS.Convertors.DocxParser.ParseDocument(Package wordPackage)
   at Syncfusion.DocIO.DLS.Convertors.DocxParser.Read(WordDocument document, Boolean isFlatOPC)
   at Syncfusion.DocIO.DLS.Convertors.DocxParser.Read(Stream docStream, WordDocument document)
   at Syncfusion.DocIO.DLS.WordDocument.OpenDocx(Stream stream)
   at Syncfusion.DocIO.DLS.WordDocument.OpenInternal(Stream stream, FormatType formatType, String password)
   at Syncfusion.DocIO.DLS.WordDocument.Open(Stream stream, FormatType formatType)
   at Syncfusion.DocIO.DLS.WordDocument..ctor(Stream stream, FormatType type)

...


After downgrade the package to v18.3.0.53 my code is working again.