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 34:     private void getPanels()
Line 35:     {
Line 36:         DataHelper.ParameterList pl = new DataHelper.ParameterList("pageID", page.ID);
Line 37:         DataTable dt = DataHelper.GetDataTable("getPagePanels", pl);
Line 38: 

Source File: c:\Home\northampton\www\_templates\Page.aspx.cs    Line: 36

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Web_Page.getPanels() in c:\Home\northampton\www\_templates\Page.aspx.cs:36
   Web_Page.Page_Load(Object sender, EventArgs e) in c:\Home\northampton\www\_templates\Page.aspx.cs:14
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   AmicusWeb.Core.BasePage.OnLoad(EventArgs e) in c:\Home\northampton\www\App_Code\BasePage.cs:123
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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