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 333:</asp:Content>
Line 334:<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
Line 335:    <asd:Window ID="Window1" Apply="WebBase.Composer.HotelDetailComposer" runat="server">
Line 336:        <div class="form-banner-search-hotel">
Line 337:            <div class="form-banner-search">

Source File: d:\CODE-B\BaloGolfFix\BaloGolfFix\HotelDetail.aspx    Line: 335

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WebBase.Composer.HotelDetailComposer.OnInit() in D:\CODE\WebsiteTriPham\BaloGolf\Vs2019\WebBase\Composer\HotelDetailComposer.cs:28
   WebBase.Code.Component.Window.set_Apply(String value) in D:\CODE\WebsiteTriPham\BaloGolf\Vs2019\WebBase\Code\Component\Window.cs:62
   ASP.hoteldetail_aspx.__BuildControlWindow1() in d:\CODE-B\BaloGolfFix\BaloGolfFix\HotelDetail.aspx:335
   ASP.hoteldetail_aspx.__BuildControlBodyContent(Control __ctrl) in d:\CODE-B\BaloGolfFix\BaloGolfFix\HotelDetail.aspx:334
   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