Exception when convert Word to HTML

I use the latest Aspose.Word (11.11) to create DOCX files and convert them to HTML. Creating DOCX works fine, I can open the documents on MS Word, but there is following exception in converting to HTML. I can convert the DOCX files which are created by MS Word though. The process used to work well with older version of Aspose.Word (10.8). I attach the docx file which generated by Aspose.Word 11.11. Could you help to tell me what wrong with the document and how to deal with this issue? Thanks for your support.


Code:
LoadOptions loadOptions = new LoadOptions();
loadOptions.LoadFormat = LoadFormat.Docx;
Document doc = new Document(filePath, loadOptions);

HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.PrettyFormat = true;
saveOptions.SaveFormat = SaveFormat.Html;
saveOptions.AllowNegativeLeftIndent = true;

doc.Save(outputFilePath, saveOptions);

Exception:
Unable to cast object of type ‘Aspose.Words.BuildingBlocks.GlossaryDocument’ to type ‘Aspose.Words.Document’.
at x011d489fb9df7027.xb6433c109db8791a…ctor(DrawingML drawingML)
at Aspose.Words.Drawing.DrawingML.xaf782602efcbdda1()
at xf84318f571847613.x7eb91168165e4c6e.x85d408c887af682f()
at xf84318f571847613.x7eb91168165e4c6e.xffe8719b6d87d067()
at xf84318f571847613.x7eb91168165e4c6e.x5b81632e5b71b64c(DrawingML xb3c5925d90ebc5f0)
at x13cd31bb39e0b7ea.xcc0b5baa75272714.x1056c53fc7967a3d(DrawingML xb3c5925d90ebc5f0)
at x13cd31bb39e0b7ea.xcc0b5baa75272714.VisitDrawingML(DrawingML drawingML)
at Aspose.Words.Drawing.DrawingML.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Markup.StructuredDocumentTag.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Markup.StructuredDocumentTag.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.BuildingBlocks.BuildingBlock.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.BuildingBlocks.GlossaryDocument.Accept(DocumentVisitor visitor)
at x13cd31bb39e0b7ea.xcc0b5baa75272714.x18dfca7c5fd2402f(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)


Hi,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 11.11.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-7611. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-7611) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.