Free Support Forum - aspose.com

Production environment blocked for problem with Aspose.Cells.SetLicense

Hi,

we have a Developer OEM License of Aspose.Cells (Gruppo Reti Busto Arsizio Italy) .

Today, Aspose.cells suddenly blocked (after month of correct operations) in a production environment of our customer.

Here the error :

In the stack trace i also found:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.ArrayList.Add(Object value)
at x9d2539cac3622db3.x220f433da4115056.xdc195f1c5804967a()
at x9d2539cac3622db3.x220f433da4115056.x7d0214bf69711dd9(Stream xcf18e5243f8d5fd3)
at x9d2539cac3622db3.x220f433da4115056.x7d0214bf69711dd9(String x1c1fc72fe1a3b4ea, Assembly x5807f920b6fc67c4)
at Aspose.Cells.License.SetLicense(String licenseName)
at Aviva.BL.Core.ReportGenerator.Management.ManageReportMapping..ctor()

the object not set trace is:

System.NullReferenceException: Object reference not set to an instance of an object.
at x9d2539cac3622db3.x220f433da4115056.x7d0214bf69711dd9(Stream xcf18e5243f8d5fd3)
at x9d2539cac3622db3.x220f433da4115056.x7d0214bf69711dd9(String x1c1fc72fe1a3b4ea, Assembly x5807f920b6fc67c4)
at Aspose.Cells.License.SetLicense(String licenseName)
The license is embedded in our assembly and is set using "SetLicense" method (of "License" class); the operating system of the server is Windows 2003 Standard Edition SP2.
Pay attention that we already signaled this problem (happened in production 5 month ago and in the same manner) with post 209843 (title : "Aspose.Cells.SetLicense") but we don't receive response that help us to resolve the problem (and to unblock the situation we had to reboot the server).
Please, we need urgently a patch to unblock the situation.
Best Regards
Hi,

How many times do you call License.SetLicense method in your project.
Please only call it once for your application life cycle.

For reference please see the document:
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/licensing.html


Thank you.

We call License.SetLicense once per instance.

Does i have to call once per process?

Thanks.