We are using Words version 15.2.1.
Some more info: it works when run on my development PC. The evaluation header gets put on when run from the production server.
- 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.
Thanks for your response. I have already done all of the steps you mention as I had found a similar post on your site.
I have not fixed it. It does not happen from my development machine but does on the server. I have verified that the versions of the dll and lic files are the same on both machines. I use the following code (from your site) to set the license:
I originally had this code in the Global.vb file but it caused the response time in the application to increase to an unacceptable length of time. Not sure why because I have other customers where I had done that and it worked fine but at this customer response time went from 1-2 seconds to 30-60 seconds. I will try it again and let you know the results.