CLassic ASP: License file issue

I have a classic asp application where I am trying to use the Aspose dll for html to pdf conversion.

I registered the Aspose pdf using the command

regasm D:\Aspose\Aspose.Pdf.dll /codebase D:\Aspose\Aspose.Pdf.dll

And the html to pdf conversion is working fine without the license file(message displays:Evaluation Only. Created with Aspose.Pdf. Copyright 2002-2010 Aspose Pty Ltd.).

I am using the below code and I get an exception in the second line saying "The license is for a different product or corrupted." The same license is working fine in .net applications. Is it because Iam using SetLicenseCOM function. Could you please help.

Set pdf1 = server.CreateObject("Aspose.Pdf.Pdf")

pdf1.SetLicenseCOM("D:\Aspose\Aspose.Total.lic")

Hi Shinu,

Thanks for your inquiry. You need to create License class object and set license accordingly. Please check documentation link for the purpose, hopefully, it will help you to resolve the issue. If the issue persists then please share your license file as suggested here. So we will investigate and provide you information accordingly.

'set license
Dim lic
Set lic = CreateObject("Aspose.Pdf.License")
lic.SetLicense("D:\ASPOSE\Licences\Aspose.Total licenses\Aspose.Total.lic")

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal Ahmad Sana,

This solution worked perfectly fine. Thanks a lot for the prompt help.