We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

'Documents appears to be corrupted and cannot be loaded'

We are using Aspose.Words.dll (version 10.6.0.0) to open word documents from Microsoft .NET application.

These documents are password protected. Some documents are opening without any error but some documents are throwing following exception.

“'Documents appears to be corrupted and cannot be loaded'”

After searching on internet , we found some thread regarding to this exception and came to know that latest Aspose.Words.dll has fix for this issue.

But when we tried to use latest Aspose.Words.dll (version 15.9.0.0) we are getting following error

The document is encrypted using the RC4 CryptoAPI Encryption and this not currently supported.”

Here I am sending code snippet from our application

LoadOptions documentLoadOptions = null; ;

Aspose.Words.Document mAspose = null;

documentLoadOptions = new LoadOptions(LoadFormat.Auto, “1234”, string.Empty);

mAspose = new Aspose.Words.Document(filePath, documentLoadOptions);

mAspose.Save(resultFilePath, SaveFormat.Doc);

please refer attached sample report we are trying to open this report by using above code.

This sample report is password protected , password details are as follows

Read/Open Password is 1234.

Write Password is abcd.

Thanks,

Prayag

Hi Prayag,

Thanks for your inquiry. The document is encrypted using the RC4 CryptoAPI Encryption and this is not currently supported by Aspose.Words. Your request has been linked to the appropriate feature (WORDSNET-5482). You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

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


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