Lic fails

regarding Words and Pdf for .net:

I followed the instructions found at
https://docs.aspose.com/words/net/licensing/

I retrieved the lic files from the email sent to me

Now our code which was working in evaluation mode fails.

the lic files are in the bin folder with the aspose DLL’s, and are properly referenced in code

The error says the lic is not valid

What might be wrong?

Thanks

Kyle

Hello

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

Best regards,

Thank you. I have sent the license files for both Words and Pdf.

The XML is similar to what you show in your message, with a slight difference: “Aspose.Words for .NET”

Thanks

Hello

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.

Please make sure that you applied license as described here:
https://docs.aspose.com/words/net/licensing/

Also, please check the points described in “Licensing” section in FAQ:
https://forum.aspose.com/t/2711

Hope this helps.
Best regards,

Hello,

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
```

Hello

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.

Best regards,

I will try a sample application to send to you.

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

Kyle

Hello

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.

Best regards,