Aspose.Words hangs during loading the DOC using C#

Out of 4+ million documents, we came across 2 that hang during the load:

FileStream fs_in = File.OpenRead(Path.Combine(un_cab_temp_dir, filename));
Aspose.Words.Document d = new Aspose.Words.Document(fs_in);

It doesn’t throw an exception. It just keeps churning the CPU.

I attached the files.

I’m using the 30-day trial version:
Net3.5_clientprofile_authenticodesigned\Aspose.Words.dll
Runtime Version v2.0.50727
Version 11.0.0.0
Thanks,
Bob

Hi Bob,

Thanks for your query. It would be great, If you share how you create these documents? I have saved as these documents with different names by using MS word and have not found any issue with new documents while loading them with Aspose.Words.

These are older documents that were stored on a server. We want to upgrade them automatically to DOCX before sending them to an index server.

Opening them up manually in MSWORD, then resaving before using Aspose is not an option for our automated process.

Because we had 2 issues with documents that caused a hang, I’m concerned about future documents.


Thanks,
Bob

Hi Bob,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 11.1.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system as WORDSNET-6011. Your request has also been linked to this issue and you will be notified as soon as it is resolved.

Sorry for inconvenience.

Best Regards,

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


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