Hi,
We have a problem that our reports that have been saved as pdf (using aspose words) eventually generated with evaluation license notice. usually, the way we fix it, is to open the aspose.lic file, add a space, take out the space and resave it so it changes the date of the file.
Note that Aspose works fine until :
- Recycle WS
- Reboot the server
Any suggestions ?
Hi Maor,
Thanks for your inquiry. Please make sure the license file was not modified i.e. the license file becomes corrupted if it’s modified in any way and it’s digital signature does not match the content of the file. Please make sure you did not open the license in notepad or something like that and edited it, even adding an empty line can break this license file. Also, 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:
https://forum.aspose.com/t/aspose-words-faq/2711
Best regards,
Hi Maor,
Thanks for sending your license file to me via email. Unfortunately, I was unable to reproduce this issue on my side. The subscription included in your license allows you free upgrades until 13 Sep 2013. I would suggest you please upgrade to Aspose.Words 13.8.0 and let us know how it goes on your side? Moreover, I would 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.
Please also read the following article:
https://docs.aspose.com/barcode/net/licensing/
Best regards,
Hi Maor,
I see that you have sent two different license files to my email address; I have tested them both and found that both these license files are valid. Please let me know if I can be of any further assistance.
Best regards,
There’s a way to enable some kind of logs \ debug mode so we could track thing down.
i checked every case you mentioned…and more customers reporting that this happans after reboot using those licenses.
Hi Maor,
Thanks for your inquiry. Is there any error message or log you can post here? I am afraid, the License class doesn’t expose any built-in methods to check/track the status whether a license is properly applied or not. However, if you want to be sure, you can try creating your own custom method to do this job. To do this you could create a blank document and export this to a stream. Then reload this and check the first paragraph in the body for the evaluation message.
///
/// Returns true if the Aspose.Words license is set.
///
private static bool IsLicenseSet()
{
// We will insert this text at the beggining of the document.
// If the license set this text will be in th efirt paragraph,
// if not an evaluation watermark will be in the first paragraph.
const string text = "This is text used to check if the license is set";
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write(text);
// Save and open the document. If Aspose.Words works in evaluation mode it will add a watermark.
using(MemoryStream docStream = new MemoryStream())
{
doc.Save(docStream, SaveFormat.Doc);
docStream.Position = 0;
doc = new Document(docStream);
}
// Check text of the first paragraph.
return (doc.FirstSection.Body.FirstParagraph.ToTxt().Trim() == text);
}
Best regards,