'Document Corrupt' exception in versions > 15.7.0.0

Hi,


I’ve attached a solution with two C# projects which include a SampleDoc.docx which causes a ‘document corrupt’ exception in Aspose.Words.dll version 15.11.0 but not in 15.7.0 (the same document) when loaded.

The ‘DocumentCorrupt’ project uses Aspose.Words.dll version 15.11.0.0
The ‘DocumentOK’ project uses Aspose.Words.dll version 15.7.0.0

I tried several versions after 15.7.0 including the latest but the problem persists. Interestingly if I open the document in Word, make a small change (e.g. add a space) and then save, the problem goes away. (I can’t do this in our application though as Word isn’t installed on the server where it runs, and the docx is dynamically generated using OpenXML.)

I’ve been forced to downgrade our application to the 15.7.0.0 version until this can be fixed.

Thanks
Paul

The stack trace is;

Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. —> System.NullReferenceException: Object reference not set to an instance of an object.
at :clubs:? .:clubs: (Table :slight_smile:)
at :clubs:? (Table :slight_smile:)
at :clubs:? .:heart: (Table :slight_smile:)
at :clubs:? …ctor(Table :slight_smile:, Boolean :heart:)
at :clubs:? .:slight_smile:(Table :slight_smile:, Boolean :heart:)
at ☼ .:slight_smile:(Table :slight_smile:, Stack :heart:, Boolean :clubs:)
at ☼ .VisitTableEnd(Table :slight_smile:)
at Aspose.Words.Tables.Table.r3ka8zscesabkstb24kjjv9sml9wq7pw? :heart:(DocumentVisitor :slight_smile:)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptChildren(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at ☼ .:slight_smile:(Document :slight_smile:, LoadOptions :heart:)
at Aspose.Words.Document.:heart:(Stream :slight_smile:, LoadOptions :heart:)
— End of inner exception stack trace —
at Aspose.Words.Document.:heart:(Stream :slight_smile:, LoadOptions :heart:)
at Aspose.Words.Document.:slight_smile:(Stream :slight_smile:, LoadOptions :heart:)
at Aspose.Words.Document…ctor(String fileName, LoadOptions loadOptions)
at Aspose.Words.Document…ctor(String fileName)
at DocumentCorrupt.Program.Main(String[] args) in c:\Users\paul.green\Visual Studio 2015\Projects\AsposeWordsNullRefBug\DocumentCorrupt\Program.cs:line 15

Hi Paul,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13585. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Paul,

Thanks for your inquiry via email. We have asked from our product team about the ETA of this issue. As soon as any information is shared by them, we will be more than happy to share that with you.

Thanks for your patience.

Hi Tahir, has an ETA been communicated to you regarding this issue?


We are looking to go live soon and would prefer to be on the latest version of Aspose…


Regards
Will
Hi Paul,

Thanks for your inquiry. The issue (WORDSNET-13585) has been resolved and its fix will be available in next version of Aspose.Words v16.7.0. We will inform you via this forum thread once Aspose.Words v16.7.0 is published.

Thanks for your patience.

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


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

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


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