We are using Aspose.Cells for .NET
File Version: 18.104.22.168
Product Version: 2011.02.05
We included the license file as an Embedded Resource in our BusinesLogic DLL, supporting a .net 2.0.50727.4252 web application.
We are setting the license in the following way:
var license = new License();
The web application is sitting on a Windows 2008 Server running IIS 7.0
We never had an issue in our development environment and in general it is also working in production.
The web application is running for some days/weeks without any problems on production, but we are suffering with increasing frequency an aspose issue (see unspecific error message).
With the first occurrence of the issue we were able to fix the issue by copying the license file (aspose.total.lic) to the BIN folder on production server.
The issue did not occur for a month. When the same issue reoccurred we were able to fix the issue by deleting the aspose.total.lic file from the BIN folder.
But in the last 4 business days we had to add/remove the aspose.total.lic file every day.
Restarting the web application/application pool does not help, only adding/removing the license file will help.
“Object reference not set to an instance of an object”
Thread information: Thread ID: 10 Thread account name: XXXXXXXXXXXXXXX Is impersonating: False Stack trace: at ?.?.?(Stream ?)
at ?.?.?(String ?, Assembly ?)
at EY.ACP.BusinessLogic.Reporting.ReportingBusinessLayer.BuildWorkbook(ReportTemplate report) in C:\GlobalTFS\...\ACP.BusinessLogic\Reporting\ReportingBusinessLayer.cs:line 86
=> line 86: license.SetLicense("Aspose.Total.lic");