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 43: </asp:Content>
Line 44: <asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
Line 45:     <asd:Window ID="Window1" runat="server" Apply="WebBase.Composer.ProductDetailComposer">
Line 46:         <div class="list-item p-detail">
Line 47:             <div class="item-2">

Source File: c:\CODE\BanhTrungThu2\ProductDetail.aspx    Line: 45

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WebBase.Composer.ProductDetailComposer.OnInit() in D:\PROJECTS\WebsiteTriPham\BanhTrungThu2\WebBase\WebBase\Composer\ProductDetailComposer.cs:19
   WebBase.Code.Component.Window.set_Apply(String value) in D:\PROJECTS\WebsiteTriPham\BanhTrungThu2\WebBase\WebBase\Code\Component\Window.cs:62
   ASP.productdetail_aspx.__BuildControlWindow1() in c:\CODE\BanhTrungThu2\ProductDetail.aspx:45
   ASP.productdetail_aspx.__BuildControlContent2(Control __ctrl) in c:\CODE\BanhTrungThu2\ProductDetail.aspx:44
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.template_site_master.__BuildControlMainContent() in c:\CODE\BanhTrungThu2\Template\Site.Master:143
   ASP.template_site_master.__BuildControlpageMain() in c:\CODE\BanhTrungThu2\Template\Site.Master:90
   ASP.template_site_master.__BuildControlTree(template_site_master __ctrl) in c:\CODE\BanhTrungThu2\Template\Site.Master:1
   ASP.template_site_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c3e83984\4d896f4a\App_Web_ptjdeyt2.1.cs:0
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +37
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +697
   System.Web.UI.Page.get_Master() +56
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +302


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