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
155
Need Help with NullReferenceException
posted

Based on the Stack Trace of my error I'm not really sure what's going on but I believe it to be something with the WebCombo. If you guys know of a fix please let me know...Line 22 (Response.Expires = 0) is where I'm getting the NullReference, however as soon as it comes back from code behind and runs through my Response commands, it breaks. Thanks!

.aspx

 <%@ Page Language="VB" AutoEventWireup="false" CodeBehind="~/App_Code/frmRateEstimate.aspx.vb"Inherits="frmRateEstimate" debug="True" enableViewState="True" aspCompat="True" errorPage="frmErrorTrap.aspx"%>
<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics35.WebUI.UltraWebGrid.v8.2" %>
<%@ Register TagPrefix="igcmbo" Namespace="Infragistics.WebUI.WebCombo" Assembly="Infragistics35.WebUI.WebCombo.v8.2" %>
<%@ Register tagprefix="uc1" tagname="uc_Menu" src="uc_Menu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

        <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
        <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE" />
        <meta content="JavaScript" name="vs_defaultClientScript" />
        <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
        
    <head runat="server">
        <title>Insight Rater - Transportation Insight</title>
    </head>
    
        <%  Response.CacheControl = "no-cache"%>
        <%Response.AddHeader("Pragma", "no-cache")%>
        <%Response.Expires = 0%>

 

 

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 20:         <%  Response.CacheControl = "no-cache"%>
Line 21: <%Response.AddHeader("Pragma", "no-cache")%>
Line 22: <%Response.Expires = 0%>
Line 23:
Line 24: <script language="javascript" id="clientEventHandlersJS" type="text/javascript" ></script>

Source File: C:\Projects\TI\Web-Site Conversion 3.5\insightTools35\frmRateEstimate.aspx    Line: 22

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Infragistics.WebUI.UltraWebGrid.UltraGridCell.Infragistics.WebUI.UltraWebGrid.IXPathDataNavigable.GetNextSibling() +165
Infragistics.WebUI.UltraWebGrid.XPathDataNavigator.MoveToNext() +56
Infragistics.WebUI.UltraWebGrid.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +294
Infragistics.WebUI.UltraWebGrid.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +284
Infragistics.WebUI.UltraWebGrid.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +284
Infragistics.WebUI.UltraWebGrid.XPathDataNavigator.WriteOuterXml(TextWriter stream) +90
Infragistics.WebUI.UltraWebGrid.RenderXmlGrid.WriteBody(HtmlTextWriter writer, RowsCollection rows, Boolean topLevel) +83
Infragistics.WebUI.UltraWebGrid.RenderXmlGrid.WriteUltraWebGrid(HtmlTextWriter writer, UltraWebGrid grid, Boolean shouldWriteAll) +722
Infragistics.WebUI.UltraWebGrid.RenderXmlGrid.VisitObjects(HtmlTextWriter output) +426
Infragistics.WebUI.Shared.RendererBase.Render(HtmlTextWriter output) +36
Infragistics.WebUI.UltraWebGrid.GridRendererBase.Render(HtmlTextWriter output) +382
Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Render(HtmlTextWriter output) +447
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
Infragistics.WebUI.WebCombo.RenderDHTMLCombo.Render(HtmlTextWriter output) +8927
Infragistics.WebUI.WebCombo.WebCombo.Render(HtmlTextWriter output) +103
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
ASP.frmrateestimate_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Projects\TI\Web-Site Conversion 3.5\insightTools35\frmRateEstimate.aspx:22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558