Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Webgrid causing null reference exception in CalcEngine after service release update
posted

Hi all,

 We recently upgraded our controls to  9.2.20092.2056  in order to fix the random exception being generated by webUi.Shared that was fixed recently, however now we are having an even bigger problem. We can no longer run the site at all as whenever the page loads we get:

[NullReferenceException: Object reference not set to an instance of an object.]
   Infragistics.WebUI.CalcEngine.TokenInfo.get_Reference() +29
   Infragistics.WebUI.CalcEngine.TokenInfo..ctor(ReferenceHolder referenceHolder, IUltraCalcReference reference, TokenInfo deltaScope) +151
   Infragistics.WebUI.CalcEngine.TokenInfo.GetDependantsHelper(TokenInfo tokenLHS, ReferenceHolder RHS, HashSet processedLHS, HashSet result) +366
   Infragistics.WebUI.CalcEngine.TokenInfo.GetDependants(AncestorMapCache cache, TokenInfo tokenLHS, ReferenceHolder RHS) +177
   Infragistics.WebUI.CalcEngine.TokenInfo.GetDependants(AncestorMapCache cache, ReferenceHolder LHS, ReferenceHolder RHS) +58
   Infragistics.WebUI.CalcEngine.UltraCalcEngine.DetectCircularity(AncestorMapCache cache, ReferenceHolder formulaReference) +101
   Infragistics.WebUI.CalcEngine.UltraCalcEngine.VerifyAncestorMap() +549
   Infragistics.WebUI.CalcEngine.UltraCalcEngine.CleanTopologicalEventQueue(Int64 ticks) +431
   Infragistics.WebUI.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks, Boolean isStartOfRecalcOperation) +99
   Infragistics.WebUI.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks) +42
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalcInternal(Int64 ticks, Boolean ignoreSuspend) +228
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalc(Int64 millis) +430
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalc(Boolean ignoreSuspend) +38
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalc() +42
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.ReCalcSynchronous() +71
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.VerifyReCalc() +69
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.DirtyCalc(IUltraCalcReference reference, ValueDirtiedAction action) +108
   Infragistics.WebUI.UltraWebCalcManager.UltraWebCalcManager.Infragistics.WebUI.CalcEngine.IUltraCalcManager.AddReference(IUltraCalcReference reference) +118
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.RegisterWithCalcManager() +209
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.set_CalcManager(IUltraCalcManager value) +92
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.FindCalcManagerAndRegisterWithIt(Control container) +216
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.FindCalcManagerAndRegisterWithIt(Control container) +278
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.FindCalcManagerAndRegisterWithIt(Control container) +278
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.FindCalcManagerAndRegisterWithIt(Control container) +278
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.FindCalcManagerAndRegisterWithIt(Control container) +278
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.FindCalcManagerAndRegisterWithIt() +347
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Control_Load() +179
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.OnLoad(EventArgs e) +45
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

It seems to think a grid referenced in the calc manager is no longer there, however there aren't any grids taht get deleted that would have a reference to the calc manager (there are some that are on tabs that are hidden for most users, but that has never caused a problem before). I tried removing the webcalcmanager and readding it to the page, but that had no effect. Any suggestions on how to fix this would be greatly appreciated.