Aspose.Words complains that the doc is corrupted.
Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
—> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at . (Int32 )
at . , Int32 )
at . , , Int32 )
at .( , Boolean )
at . (Int32 , Int32 , Boolean )
at . , Int32 , Int32 )
at (BinaryReader , )
at ()
at . ()
at Aspose.Words.Document (Stream , LoadOptions )
— End of inner exception stack trace —
at Aspose.Words.Document (Stream , LoadOptions )
at Aspose.Words.Document. (Stream , LoadOptions )
at Aspose.Words.Document…ctor(String fileName, LoadOptions loadOptions)
@boris.nikitin,
You’re right; the latest 21.2 version of Aspose.Words for .NET currently throws the following exception upon loading this particular DOC Word file:
Aspose.Words.FileCorruptedException
HResult=0x80131500
Message=The document appears to be corrupted and cannot be loaded.
Source=Aspose.Words
Inner Exception 1:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-21909. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.
The issues you have found earlier (filed as WORDSNET-21909) have been fixed in this Aspose.Words for .NET 21.3 update and this Aspose.Words for Java 21.3 update.