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

Free Support Forum - aspose.com

Message about evaluation copy on a long running process

We are using aspose.cells 8.2.1.0 and Aspose.Imaging 2.6.0.0

We have a proper aspose.total license

We have program written as a windows service.
During the service startup, we set the aspose license using the following code:
var asposeLic = new Aspose.Cells.License();
asposeLic .SetLicense(“Aspose.Total.lic”);

We keep this asposeLic variable as a static member. We do this in order to save time/memory in our server application
When we then create images out of excel files, everything works fine. We are able to create 10’000 images without problems.
But after a week, all images contain the following message: You are using an evaluation copy and have opened files exceeding limitation

Question: Is there a limit how long a license set in code is valid?
Are you aware of this problem?
Is there a way to check whether a license in memory is still threaded as valid(In order to decide whether we should reset it)

Hi,


Thanks for providing us some details.

No, there is no limitation regarding total number of images (probably you are using Sheet to Image feature) generated in licensing mode (licensing mode is that when you set a valid license before using any other APIs of the product), you should be able create as many images as you want for sure. The license is set forever in an application life cycle, it should always work fine.

It looks like licensing code is not called all the time as you use static variable for license for your scenario. Please make sure that your licensing code should run at least one time in the whole application/service life cycle, it looks like your licensing code does not process all the time. You should place the licensing code at a place in your program/class where it should be processed at first and fine before using any other APIs of Aspose.Cells component. For example, you may place the licensing code in your main class library which it should be run when you create any object for that class library (e.g in the constructor of the class) at the start before using any other APIs of the product. Moreover, we also recommend you to kindly check if the license is actually set/ loaded fine, see the document for your reference:
http://www.aspose.com/docs/display/cellsnet/Determining+if+the+License+is+loaded+successfully
This way, you may track if license is set fine or not.

Also, please see the document for your further reference:
http://www.aspose.com/docs/display/cellsnet/Licensing

Let us know if you still find any issue.

Thank you.

Hi,


We are creating some images based on an excel at the very start of the application, and it also works for up to a week. But then without any service restart, the license becomes invalid somehow.

I’ll add the check IsLicensed, and then set the license anew.
I’ll also try to add some logging to it in order to see when this happens.




I don’t have this feature (property IsLicensed) on my version of Aspose.Cells 8.2.1.0.

In which version was this feature introduced?

Hi,


Well, we added this feature a few months back. We recommend you to kindly try the recent versions (e.g Aspose.Cells for .NET v8.6.2 is the latest version) of the product.

Thank you.