I have deployed an ASP.NET 2.0 application that is using neadvantage 7.1 for ASP.NET. Sometimes randomly, when a page that contains webdatechooser control is loaded, the following error occurs:
Normal 0 false false false EN-US X-NONE AR-SA MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;}
Object reference not set to an instance of an object. Stack Trace: at Infragistics.WebUI.Shared.WebAgent.GetPageControl(Control control) at Infragistics.WebUI.Shared.WebAgent.get_EnableAppStylingResolved() at Infragistics.WebUI.WebSchedule.WebDateChooser.get_IsAppStyling() at Infragistics.WebUI.WebSchedule.WebDateChooser.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The user can go further unless the IIS server is restarted. As you can see, all the method call that are involved in the error are from Infragistics and .net framework. Any clue on how to solve the problem?
Note: Sometimes the error appears for other infragistics control such as ultrawebgrid etc.
Just checked and a new service pack was released 10/2 version 2122. The docs does not say whether this was fixed but its worth a try as I'm not sure if this is a server config error or problem with the dll.
Hi Brian - I've opened a trouble ticket on 9/28 according to Vince's recommendation but haven't heard back yet. My issue seems to be related only to the webdatechooser control. Which makes me think it has something to do with the way that DLL is stored in GAC. For you it looks like it is the WebDataInput control. So at least now I know it is not specific to the webdatechooser but probably to do with the way ASP accesses the resource.
I am now investigating whether it has to do with medium trust issues on the server. Since I can't seem to find an easy way of replicating the error, it is difficult to narrow this down. I tried using the DLLs in the APTCA and Bin-Signed folders. When I get a chance, I'll try updating the GAC with the regular DLLs in the BIN folder.
Not sure if anyone knows what are the possible causes for a Null reference at that stage of the page cycle from the stack trace. Does it mean that ASP can not find the dll in the GAC? With that, I was thinking of placing all DLLs in the BIN folder and wait and see if the error shows itself again.
Good Luck!
Any update on this? Following an upgrade from 2008 vol. 1 to 2009 vol. 1 (9.1.20091.2087), we began experiencing this issue at random times and only on one development server. IIS reset always seems to get rid of the error (until next time). Here is a stack trace:
Stack TraceObject reference not set to an instance of an object.Object reference not set to an instance of an object. (System.NullReferenceException)at Infragistics.WebUI.Shared.GlobalCssHelper.GetPageContainer(Page page, Boolean create)at Infragistics.WebUI.Shared.GlobalCssHelper.OnInit(WebControl control, Page page)at Infragistics.WebUI.WebDataInput.WebTextEdit.OnPreRender(EventArgs e)at System.Web.UI.Control.PreRenderRecursiveInternal()at System.Web.UI.Control.PreRenderRecursiveInternal()at System.Web.UI.Control.PreRenderRecursiveInternal()at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Thanks
I’ve opened a trouble ticket for this one, as it seems to be a reoccurring issue for me.
vgk said:Will post if I continue to see this.