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 718:                node = tree.SelectSingleNode("csmls", parentPath.ToString(), DocumentContext.CurrentDocumentCulture.CultureCode.ToString());
Line 719:
Line 720:                cultureURL = DocumentURLProvider.GetUrl(node.NodeAliasPath.ToString(), node.DocumentUrlPath.ToString(), node.NodeSiteName.ToString());
Line 721:
Line 722:

Source File: c:\HOMEWEB\csmlswebdev\httpdocs\CMS\CMSWebParts\CSMLS\csmlsSidebarMenu.ascx.cs    Line: 720

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   CMSWebParts_csmls_csmlsSidebarMenu.get_ParentTitle() in c:\HOMEWEB\csmlswebdev\httpdocs\CMS\CMSWebParts\CSMLS\csmlsSidebarMenu.ascx.cs:720
   CMSWebParts_csmls_csmlsSidebarMenu.SetupControl() in c:\HOMEWEB\csmlswebdev\httpdocs\CMS\CMSWebParts\CSMLS\csmlsSidebarMenu.ascx.cs:825
   CMSWebParts_csmls_csmlsSidebarMenu.OnContentLoaded() in c:\HOMEWEB\csmlswebdev\httpdocs\CMS\CMSWebParts\CSMLS\csmlsSidebarMenu.ascx.cs:750
   CMS.PortalControls.CMSWebPartZone.OnContentLoaded() +157
   CMS.PortalControls.CMSAbstractLayout.OnContentLoaded() +173
   CMS.PortalControls.CMSAbstractLayout.LoadWebPartsContent(Boolean reloadData) +313
   CMS.PortalControls.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +885
   CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2075
   CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2892
   CMS.PortalControls.CMSPortalManager.LoadPage(Boolean reloadData) +235
   CMS.PortalControls.CMSPortalManager.PageHelper_InitComplete(Object sender, EventArgs e) +28
   CMS.Helpers.PageContext.CurrentPage_InitComplete(Object sender, EventArgs e) +279
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +11692391
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +630


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