Aspose.Words.FileCorruptedException is thrown while importing HTML using .NET

Hi Support,

We are using Aspose from last few years now. We have recently have purchased the newer version of aspose word for .net. We used this tool to convert html document to word format which is working fine.

But we are facing one issue while converting one of document. Please urgent attension is required as this files needs to be delivered on time.

Sample code:

Aspose.Words.Document doc = new Aspose.Words.Document();
string filePath = path of htm file
var licpath = path of licence file
Stream strLicenscePath = new MemoryStream(File.ReadAllBytes(licpath));
Aspose.Words.License licWord = new Aspose.Words.License();
licWord.SetLicense(strLicenscePath);

doc = new Aspose.Words.Document(filePath);

2c8ec671-2c42-4a2e-bec2-5e96bfa549a3.zip (429.5 KB)

Please help this out

Exception :The Document appears to be currupted

@ashishsinghvi

We have logged this problem in our issue tracking system as WORDSNET-21803. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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