Null ref exception loading word document

When using Aspose.Words 13.11 to open the attached document, the following exception is thrown, however the file opens fine in Microsoft Word.


var wordDoc = new Aspose.Words.Document(filePath);

Result Message:
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.
Result StackTrace:
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document…ctor(String fileName, LoadOptions loadOptions)
----- Inner Stack Trace -----
at x6f978ba1e7522832.x3eb345b6a7476c91.x2986430b97a5e6b0()
at xa604c4d210ae0581.x82985a3d7a64e540.x09a3d4a7eac8f520(x875aca5784596b73 x28180b3c3774af93, x8de82539c936c298 xe780cde24dcce6f2, Int32 x0d4f7f21e78721d6, BinaryReader xe134235b3526fa75)
at x16f9a31f749b8bb1.x1ae9945b169ad9b2.x9b1a5fd2bd42bd55(x875aca5784596b73 x28180b3c3774af93, x8de82539c936c298 xe780cde24dcce6f2, Int32 x0d4f7f21e78721d6, BinaryReader xe134235b3526fa75)
at xa604c4d210ae0581.xd503583b32a53cea.x06b0e25aa6ad68a9(Byte[] x24c45257571ea504)
at x16f9a31f749b8bb1.x1ae9945b169ad9b2.x06b0e25aa6ad68a9(x3ff949c473a702d2 x03ef0b0129c670a6, Byte[] x24c45257571ea504)
at x16f9a31f749b8bb1.x0f8a9a895bdf560e.x3b355689ee7596e9(Int32 x03e8ba449439270f, x32939c68497cb083 x887d78e87c5df078)
at x16f9a31f749b8bb1.x32eac27632acc346.x202d2c9935d7ab12(x98d75821045fe9bd xbb8131fb9e06f47f, Int32 xd8dbc186289870fa, Int32 x459133b45d02f55a, Boolean x75ab92cd444a1771)
at x16f9a31f749b8bb1.x32eac27632acc346.xbac2e778f3c6bad1(x98d75821045fe9bd xbb8131fb9e06f47f)
at x16f9a31f749b8bb1.x32eac27632acc346.x1f490eac106aee12(Int32 x828697433249d659, Int32 x961016a387451f05)
at x16f9a31f749b8bb1.x32eac27632acc346.x1f490eac106aee12()
at x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

Hi Barry,

Thanks for your inquiry.

I
have tested the scenario and have managed to reproduce the same issue at
my side. For the sake of correction, I have logged this problem in our
issue tracking system as WORDSNET-9434. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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


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