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 14:         IDataNode categoryNode = ensembleNode.SelectSingleNode("category[@UID='" + _submenu + "']");
Line 15: 
Line 16:         _title += constant.TITLE_SEPARATOR + categoryNode.SelectSingleNode("..").GetAttribute("title") + constant.TITLE_SEPARATOR + categoryNode.GetAttribute("title");
Line 17: 
Line 18:         string

Source File: d:\www\sommer-theater.ch\web\pages\ensemble_detail.aspx.cs    Line: 16

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   pages_ensemble_detail.Page_Load(Object sender, EventArgs e) in d:\www\sommer-theater.ch\web\pages\ensemble_detail.aspx.cs:16
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   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.3282.0