Exception was thrown in loading a specific DOC

Hi Aspose,

Please help me check this DOC file. It’s an infected file containing virus, be careful.
sample.zip (33.6 KB)
Password to extract: ThisIsVirus

I tried to load it with the following code,

Document doc = new Document(inputFile);
doc.Save(outputFile, Aspose.Words.SaveFormat.Pdf);

but an exception was thrown

Unable to cast object of type ' ’ to type ' '.

Thank you,
Dung H. Nguyen

@dunghnguyen,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15758. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi @tahir.manzoor,

Could you let me know why the issue happens? Is there malformed format or anything specific in that file?
In order to correct our document generating process, any details are appreciated.

Thank you,
Dung H. Nguyen

@dunghnguyen,

Thanks for your inquiry. Once our product team completes the analysis of this issue, we will then be able to share the reason of this issue. Thanks for your patience.

Hi @tahir.manzoor,

Is there any good news :grinning:?

Thanks,
Dung H. Nguyen

@dunghnguyen,

Thanks for your inquiry. The issue WORDSNET-15758 has been resolved and its fix will be available in next version of Aspose.Words i.e. 17.10. We will inform you via this forum thread once it is published. Thanks for your patience.

Thank you, @tahir.manzoor

@dunghnguyen,

The issues you have found earlier (filed as WORDSNET-15758) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.

Thank you @awais.hafeez.
So glad to hear that