Set License with SetLicenseCOM


I recently renewed my license and it came in a file named "Aspose.Words.lic.xml". In the VBScript code, I set the license this way:

Set Word = CreateObject("Aspose.Word.Word")

Word.SetLicenseCOM "C:\Inetpub\wwwroot\Aspose.Word\License\Aspose.Word.lic.txt"

If I change it to:

Word.SetLicenseCOM "C:\Inetpub\wwwroot\Aspose.Word\License\Aspose.Words.lic.xml"

I get an error message the license is invalid or for the wrong product.

What am I doing wrong?


The product has been renamed from Aspose.Word to Aspose.Words. New licenses are issued for Aspose.Words, not for Aspose.Word. Therefore you need to download the latest version, install it and change your code so you have:

Set Word = CreateObject("Aspose.Words.Word")

and so on.


Do I have to install the latest version?