Issue with opening some documents from the stream after upgrading to 22.2

Hi,

After upgrading Aspose.Words from version 21.6 to version 22.2, we started noticing an issue with opening some documents from the stream. Trying to open a document ends with an error “Exception occurred. Details: Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. —> System.InvalidOperationException: Cannot find a style with this istd.”.

We tried to upgrade, but issue is also reproducible using Aspose.Words 22.4, while it is not in 21.6.

In the attachment there is the document for which the problem is reproducible, the linqpad script with the code that opens the document and linqpad output with exception thrown exported to html.

/Best regards,
Bartek

Aspose Open Document Issue.zip (36.6 KB)

@jhas Thank you for reporting this problem to us. I have managed to reproduce it on my side. For a sake of correction the issue has been logged as WORDSNET-23715. We will keep you informed and let you know once it is resolved.

Hi Alexey,

Do we know when this issue will be resolved?
We start reverting our clients to previous Aspose dlls (which unfortunately have another issues which were resolved on the latest ones).

/Bartek

@jhas The issue is already resolved in the current codebase. The fix will be include into the next 22.5 version of Aspose.Words, which will be released at the beginning of May 2022. We will be sure to notify you once it is available.

The issues you have found earlier (filed as WORDSNET-23715) have been fixed in this Aspose.Words for .NET 22.5 update also available on NuGet.