"Evaluation Only. Created with Aspose.Words. Copyright 2003-2015 Aspose Pty Ltd" when using valid license

I use a valid license of Aspose.Total. In my application, I am using the Aspose.Words and Aspose.Pdf, for converting to HTML. when I convert doc to HTML, I get the message "Evaluation Only....", while when I convert PDF to HTML, I do not get this message. PDF: Aspose.Pdf.License license = new Aspose.Pdf.License(); license.SetLicense("Aspose.Total.lic"); license.Embedded = true;

Words:
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(“Aspose.Total.lic”);

Its Urgent!
Please, give me a solution.


Hi Yehuda,


Thanks for your inquiry. You have to set a license separately for each Aspose product you are using. For example, if you are using Aspose.Words and Aspose.Pdf, code for setting the license will look like this:

Aspose.Words.License awLic = new Aspose.Words.License();
awLic.SetLicense(“Aspose.Total.lic”);

Aspose.Pdf.License pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense(“Aspose.Total.lic”);

Secondly, please consult this article to apply Aspose.Words license. I would also like to mention a few points here:

  • Make sure your call to SetLicense gets executed. Step through in the debugger.
  • Make sure your code does not catch an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
  • Make sure the input documents do not already have the evaluation message. Aspose.Words does not delete existing evaluation messages.
  • Make sure SetLicense is executed before you instantiate any Document object.

If you are using license as an embedded resource, you may try specifying Default Namespace of project with license file name i.e. awLic.SetLicense(“MyProject.Aspose.Total.lic”); I hope, this helps.

In case the problem still remains, Please post your license file via mail to us. We will investigate the issue on our end and provide you more information. In order to post your license file to us please follow the instructions provided in the following link:

Best regards,