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

Free Support Forum - aspose.com

Lic fails

regarding Words and Pdf for .net:

I followed the instructions found at

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.
http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

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:

Also, please check the points described in “Licensing” section in FAQ:

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:

          </td>
       </tr>
    </tbody></table>

    <br>

    <b> Source File: </b> 

D:\LtdSvn\InetPub\wwwRoot\Clients\GreenJobsProj\DevGreenJobs\Global.asax.cs
<b>Line:</b> 109

    <b>Stack Trace:</b> <br><br>

    
       
          <table width="100%" bgcolor="#ffffcc"><tbody><tr><td>
              <code></code><pre>[InvalidOperationException: The license is not valid for this product.]<br>   Aspose.Pdf.ᡢ.ᡲ(Stream ف) +890<br>   Aspose.Pdf.ᡢ.ᡲ(String ᡳ, Assembly ᡴ) +139<br>   Aspose.Pdf.License.SetLicense(String licenseName) +86<br>   Kygre.GreenJobs.Web.App.Global.Application_Start(Object sender, EventArgs e) in D:\LtdSvn\InetPub\wwwRoot\Clients\GreenJobsProj\DevGreenJobs\Global.asax.cs:109<br><br></pre></td></tr></tbody></table>

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,