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.
If the license is for Aspose.Words and you still have the same error, please send your license file to my e-mail. Please see the following link to learn how to send the license file. https://forum.aspose.com/t/aspose-words-faq/2711
Thank you for additional information. I have checked your license on my side with the latest version of Aspose.Words 9.3.0, and it works without any issues.
Here is the error I get. I get this error for either Words or Pdf
The lic files are in the bin directory along side the DLL’s. The DLL’s
work without the lic file in evaluation mode,
but as soon as I add the lic files, I get these errors.
This code is placed in Application_Start as recommended
The requirements are not complicated:
the dlls are in the bin folder
the lic files are in the bin folder
the license code is in the recommended location
How can we resolve this?
Kyle
Line 107:
Line 108: Aspose.Pdf.License licensePdf = new Aspose.Pdf.License();
Line 109: licensePdf.SetLicense("Aspose.Pdf.lic");
Line 110: }
Line 111:
Source File:
D:\LtdSvn\InetPub\wwwRoot\Clients\GreenJobsProj\DevGreenJobs\Global.asax.cs
Line: 109
Stack Trace:
[InvalidOperationException: The license is not valid for this product.]
Aspose.Pdf.ᡢ.ᡲ(Stream ف) +890
Aspose.Pdf.ᡢ.ᡲ(String ᡳ, Assembly ᡴ) +139
Aspose.Pdf.License.SetLicense(String licenseName) +86
Kygre.GreenJobs.Web.App.Global.Application_Start(Object sender, EventArgs e) in D:\LtdSvn\InetPub\wwwRoot\Clients\GreenJobsProj\DevGreenJobs\Global.asax.cs:109
```
Thanks for your inquiry. I still cannot reproduce the problem. Could you please create simple application, which will demonstrate the problem on my side? I will investigate the issue and provide you more information.
In the meanwhile, is the license associated with a particular version? I could not see the version cited in the license file. Our Words DLL is 5.2.2.0., Pdf file version is 3.6.2.0
Does the version need to be synchronized with the license?
Thanks for your request. The license is not associated with version. Every Aspose license carries one-year subscription for free upgrades to new versions released during this time.
Please note, I have tested your license with the latest version of Aspose.Words 9.3.0.