Aspose.Words error - document appears to be corrupted

Hi,
We have been occasionally receiving error below. It happens occasionally and it will not reproduce every time you process same set of documents. Can you provide any additional information on this error.

Exception: System.Exception

Message: Error during dmFileProcessing.Process: The document appears to be corrupted and cannot be loaded. - System.NullReferenceException: Object reference not set to an instance of an object.
at ვ.ე.ტ(String უ, Byte[] ࠋ, Int32 Ո)
at 䌰.䐻.䌡(ႋ 䌢)
at 䌰.䐻.䎒(ႋ 䌢)
at 䌰.䐻.䐾(ႋ 䌢, ӛ 䐽)
at 䌰.䐻.䐼(ႋ 䌢, ӛ 䐽)
at 䌰.䐻.ࣰ(䐒 ޯ)
at 䌰.䍒.ࣰ()
at Aspose.Words.Document.Ԑ(Stream ԍ, LoadFormat Ԏ, String ԏ)

@sgajski

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi,

This error does not occur every time you run the same document so we cannot really create application that reproduce the problem consistently. I am interested if you can translate what this part of error message means to help us troubleshoot it:

at ვ.ე.ტ(String უ, Byte[] ࠋ, Int32 Ո)
at 䌰.䐻.䌡(ႋ 䌢)
at 䌰.䐻.䎒(ႋ 䌢)
at 䌰.䐻.䐾(ႋ 䌢, ӛ 䐽)
at 䌰.䐻.䐼(ႋ 䌢, ӛ 䐽)
at 䌰.䐻.ࣰ(䐒 ޯ)
at 䌰.䍒.ࣰ()
at Aspose.Words.Document.Ԑ(Stream ԍ, LoadFormat Ԏ, String ԏ)

Do this characters have any meaning to you?

@sgajski

Unfortunately, it is difficult to say what the problem is without document and code example. We need simplified code and document to reproduce this issue at our end. Thanks for your cooperation.

In case you are using old version of Aspose.Words, we suggest you please upgrade to the latest version of Aspose.Words for .NET 21.7. Hope this helps you.