We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words Licence

Hi,
I have encororated an evaluation version of Aspose.Words into a .net project of mine which has been working fine for a few weeks but today when i tried to test the export to word functionality I got the following error but nothing has changed with the project except its a new evaluation licence. Im just wondering if anyone has an ideas about what may have happened…

The license is not valid for this product.

Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details:

System.InvalidOperationException: The license is not valid for this
product.

This is my C# code…

string licenseFile = sPath + "\bin\Aspose.Words.lic";

if (System.IO.File.Exists(licenseFile))
{
try
{
//This shows how to license Aspose.Words, if you don’t specify a license, 
//Aspose.Words works in evaluation mode.
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(licenseFile);
return true;
}
catch(InvalidOperationException iEx)
{
throw iEx;
}
}

Any help of advice would be appreciated…

Hi

Thanks for your inquiry. Each Aspose products have own license. Could you please check for which Aspose products your license is? To check this please, open the license file using notepad. You will see the following tags:

Aspose.Words

It means that the license is for Aspose.Words.

Best regards,

I am sure you tried it, but just in case… On a rare occasion this has come up. Restarting IIS resolved the issue.