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 24: </asp:Content>
Line 25: <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
Line 26:     <asd:Window Apply="WebBase.Composer.PromotionGolfComposer" runat="server" CssClass="page-width2">
Line 27:         <div class="title-line">
Line 28:             <asd:Span runat="server" Text="<%$Current:Name %>">

Source File: d:\CODE-B\BaloGolfFix\BaloGolfFix\PromotionGolf.aspx    Line: 26

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WebBase.Composer.PromotionGolfComposer.OnInit() in D:\CODE\WebsiteTriPham\BaloGolf\Vs2019\WebBase\Composer\PromotionGolfComposer.cs:22
   WebBase.Code.Component.Window.set_Apply(String value) in D:\CODE\WebsiteTriPham\BaloGolf\Vs2019\WebBase\Code\Component\Window.cs:62
   ASP.promotiongolf_aspx.__BuildControl__control2() in d:\CODE-B\BaloGolfFix\BaloGolfFix\PromotionGolf.aspx:26
   ASP.promotiongolf_aspx.__BuildControlBodyContent(Control __ctrl) in d:\CODE-B\BaloGolfFix\BaloGolfFix\PromotionGolf.aspx:25
   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