Object reference not set to an instance of an object. when setting license

Hi Guys,


We’ve been randomly getting the error message "Object reference not set to an instance of an object. " on our production environment, and it seems to be thrown from within the Aspose.Cells.GridWeb assembly.

I’ve posted the stack trace below, we are using Aspose.Cells.GridWeb.dll for .Net 2.0 version 2.3.2.2000.

Stack trace: at xa218afd71e4b15d5.x220f433da4115056.x7d0214bf69711dd9(Stream xcf18e5243f8d5fd3)
at xa218afd71e4b15d5.x220f433da4115056.x7d0214bf69711dd9(String x1c1fc72fe1a3b4ea, Assembly x5807f920b6fc67c4)
at Aspose.Cells.GridWeb.License.SetLicense(String licenseName)
at BizCapsOb.BizGrid.License() in C:\BizMain\Bizcapsob\BizcapsOb.cs:line 3742
at ASP.appgen_ut_100_mc_aspx.OnInit(EventArgs e) in c:\Inetpub\wwwroot\g-caps\AppGen\bizmnt.inc:line 39
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

This exception is happening when we do the following
Aspose.Cells.GridWeb.License lc = new Aspose.Cells.GridWeb.License();
lc.SetLicense(“Aspose.Total.lic”);
and Aspose.Total.lic happens to be an embedded resource.

This issue is intermittent, because when we reset IIS the issue goes away and these exceptions no longer happen.

Has anyone seen this before? Help!

Hi,

Thanks for your posting and using Aspose.Cells for GridWeb.

Please download and try the latest fix:
Aspose.Cells
for GridWeb v2.7.9.2000
. It should resolve your problem.

However, if the problem still occurs, we will need your sample runnable but simpler project replicating this issue using the above version to look into this issue.

We will investigate this issue and help you asap.