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

Source File: c:\Home\london.aru.ac.uk\_2022\www\_templates\Open-Days.aspx.cs    Line: 37

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Web_Page.getPanels() in c:\Home\london.aru.ac.uk\_2022\www\_templates\Open-Days.aspx.cs:37
   Web_Page.Page_Load(Object sender, EventArgs e) in c:\Home\london.aru.ac.uk\_2022\www\_templates\Open-Days.aspx.cs:11
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   AmicusWeb.Core.BasePage.OnLoad(EventArgs e) in c:\Home\london.aru.ac.uk\_2022\www\App_Code\BasePage.cs:121
   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