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…