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 242:                
Line 243:                <%=GetH1() %>
Line 244:                <%=GetOpenClosed() %>
Line 245:            
Line 246:            </h1>

Source File: c:\Sites\SchneeradarDE\Master\MasterVillageWebcam.master    Line: 244

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SneeuwhoogtenNL.Master.MasterVillageWebcam.GetOpenClosed() in C:\Users\JoeriFokke\Downloads\de.sneeuwhoogten.nl\de.sneeuwhoogten.nl\Master\MasterVillageWebcam.master.cs:202
   ASP.master_mastervillagewebcam_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Sites\SchneeradarDE\Master\MasterVillageWebcam.master:244
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +168
   SneeuwhoogtenNL.Common.BasePage.Render(HtmlTextWriter htmlTextWriter) in C:\Users\JoeriFokke\Downloads\de.sneeuwhoogten.nl\de.sneeuwhoogten.nl\Common\BasePage.cs:507
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4238


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