Hi,
We are encountering an exception when loading these set of documents using Aspose.Words v20.8.0 stating that the files appears to be corrupted. However, when the documents are opened using MS Word, there are no hints of document corruption.
Here is the code snippet and exception details:
try
{
Document document = new Document(filePath);
}
catch (FileCorruptedException fce)
{ }
Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. ---> System.InvalidOperationException: A value with the specified key has already been added.
at . (Int32 , , Boolean )
at ? .(? , Paragraph )
at ? .? (? )
at . (? )
at . (? )
at ? .(CompositeNode )
at .(? )
at ? .()
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)
Can you please look into this and share your findings?
Set4 (17.4 KB)
Set5.docx (17.4 KB)
Set7.docx (17.5 KB)
Cheers