Object reference not set to an instance of an object.

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 84:     public string SectionName
Line 85:     {
Line 86:         get { return TreeHelper.SelectSingleNode(SectionPath).DocumentName; }
Line 87:     }
Line 88:     public bool IsNoFollow

Source File: c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\UserControls\PageNavigation.ascx.cs    Line: 86

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   hccrems_UserControls_PageNavigation.get_SectionName() in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\UserControls\PageNavigation.ascx.cs:86
   hccrems_UserControls_PageNavigation.set_SectionPath(String value) in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\UserControls\PageNavigation.ascx.cs:52
   ASP.hccrems_templates_program_aspx.__BuildControlPageNavigation1() in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\Templates\Program.aspx:13
   ASP.hccrems_templates_program_aspx.__BuildControlContent2(Control __ctrl) in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\Templates\Program.aspx:12
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +10
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +88
   ASP.hccrems_master_hccrems_master.__BuildControlContentPlaceHolder1() in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\Master\hccrems.master:42
   ASP.hccrems_master_hccrems_master.__BuildControlform1() in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\Master\hccrems.master:23
   ASP.hccrems_master_hccrems_master.__BuildControlTree(hccrems_master_hccrems_master __ctrl) in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\Master\hccrems.master:1
   ASP.hccrems_master_hccrems_master.FrameworkInitialize() in c:\HostingSpaces\hccrems\hccrems.com.au\wwwroot\hccrems\Master\hccrems.master.cs:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +32
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +886
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +14
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


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