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 358:				cssClass = "active";
Line 359:
Line 360:				if (siteMapProvider.CurrentNode.ParentNode.Equals(siteMapProvider.RootNode)) {
Line 361:					dt.Rows.Add(new Object[] { siteMapProvider.CurrentNode.Title, Page.ResolveUrl(siteMapProvider.CurrentNode.Url), "", cssClass });
Line 362:				}

Source File: \\172.21.204.201\webvol2\6y\20h0mq2vfd5fkpg\boxholms-ibk.com\public_html\templates\website\Default.ascx.cs    Line: 360

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Website.Templates.DefaultPageTemplate.PopulateSubNavigation() in \\172.21.204.201\webvol2\6y\20h0mq2vfd5fkpg\boxholms-ibk.com\public_html\templates\website\Default.ascx.cs:360
   Website.Templates.DefaultPageTemplate.Page_Load(Object sender, EventArgs e) in \\172.21.204.201\webvol2\6y\20h0mq2vfd5fkpg\boxholms-ibk.com\public_html\templates\website\Default.ascx.cs:135
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433