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 85: </asp:Content>
Line 86: <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
Line 87:     <asd:Window ID="Window1" Apply="WebBase.Composer.TourDetailComposer" runat="server">
Line 88:         <div class="page-width2" style="display: none;">
Line 89:             <asd:Image ID="Image1" runat="server" Src="<%$Current:Media2 %>">

Source File: d:\CODE-B\BaloGolfFix\BaloGolfFix\TourDetail.aspx    Line: 87

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WebBase.Composer.TourDetailComposer.OnInit() in D:\CODE\WebsiteTriPham\BaloGolf\Vs2019\WebBase\Composer\TourDetailComposer.cs:20
   WebBase.Code.Component.Window.set_Apply(String value) in D:\CODE\WebsiteTriPham\BaloGolf\Vs2019\WebBase\Code\Component\Window.cs:62
   ASP.tourdetail_aspx.__BuildControlWindow1() in d:\CODE-B\BaloGolfFix\BaloGolfFix\TourDetail.aspx:87
   ASP.tourdetail_aspx.__BuildControlBodyContent(Control __ctrl) in d:\CODE-B\BaloGolfFix\BaloGolfFix\TourDetail.aspx:86
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +107
   ASP.template_site_master.__BuildControlMainContent() in d:\CODE-B\BaloGolfFix\BaloGolfFix\Template\Site.Master:181
   ASP.template_site_master.__BuildControlpageMain() in d:\CODE-B\BaloGolfFix\BaloGolfFix\Template\Site.Master:75
   ASP.template_site_master.__BuildControlTree(template_site_master __ctrl) in d:\CODE-B\BaloGolfFix\BaloGolfFix\Template\Site.Master:1
   ASP.template_site_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3997e177\da63bb87\App_Web_n35asfba.0.cs:0
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1321
   System.Web.UI.Page.get_Master() +65
   System.Web.UI.Page.ApplyMasterPage() +18
   System.Web.UI.Page.PerformPreInit() +64
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +334


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