Server Error in '/' Application.

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 447:        //Response.Write("<BR>mySQL Monthly Data===> " + mySQL);
Line 448:
Line 449:        hyperlink1.NavigateUrl = "Marketing_Annual.aspx?" + VB_EncDec.EncDec.Encode("URL_SelectYear=" + ViewState["selectYear"].ToString() +
Line 450:                                 "&URL_SelectMonth=" +  ViewState["selectMonth"].ToString() +
Line 451:                                 "&Airport=" + sel_Airport +

Source File: f:\TranStats\Marketing_Monthly.aspx    Line: 449

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.marketing_monthly_aspx.loadData(String sel_Airport, String sel_Carrier, Int32 sel_Year, Int32 Arr_Del) in f:\TranStats\Marketing_Monthly.aspx:449
   ASP.marketing_monthly_aspx.Page_Load(Object sender, EventArgs e) in f:\TranStats\Marketing_Monthly.aspx:305
   System.Web.UI.Control.OnLoad(EventArgs e) +85
   System.Web.UI.Control.LoadRecursive() +128
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3711


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0