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 313:                        <!-- class fa flag xx -->
Line 314:                        <%=GetH1() %>
Line 315:                        <%=GetOpenClosed() %>
Line 316:                    </h1>
Line 317:

Source File: c:\Sites\SneeuwHoogtenNL\Master\MasterVillageWeather.master    Line: 315

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SneeuwhoogtenNL.Master.MasterVillageWeather.GetOpenClosed() in C:\Users\JoeriFokke\Desktop\Sneeuwhoogten\SneeuwHoogtenNL\SneeuwHoogtenNL\SneeuwHoogtenNL\Master\MasterVillageWeather.master.cs:219
   ASP.master_mastervillageweather_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Sites\SneeuwHoogtenNL\Master\MasterVillageWeather.master:315
   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\Desktop\Sneeuwhoogten\SneeuwHoogtenNL\SneeuwHoogtenNL\SneeuwHoogtenNL\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