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 167:</asp:Content>
Line 168:<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
Line 169:    <asd:Window Apply="WebBase.Composer.ProductCategoryComposer" runat="server" CssClass="page-width">
Line 170:        <ul class="breadcrumb">
Line 171:            <li><a href="/" class="glyphicon glyphicon-home"></a></li>

Source File: d:\vhosts\mkjsc.com.vn\httpdocs\ProductCategory.aspx    Line: 169

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WebBase.Composer.ProductCategoryComposer.OnInit() in D:\CODE\HomeSite\MKJSC\VS2015\WebBase\WebBase\Composer\ProductCategoryComposer.cs:29
   WebBase.Code.Component.Window.set_Apply(String value) in D:\CODE\HomeSite\MKJSC\VS2015\WebBase\WebBase\Code\Component\Window.cs:62
   ASP.productcategory_aspx.__BuildControl__control2() in d:\vhosts\mkjsc.com.vn\httpdocs\ProductCategory.aspx:169
   ASP.productcategory_aspx.__BuildControlBodyContent(Control __ctrl) in d:\vhosts\mkjsc.com.vn\httpdocs\ProductCategory.aspx:168
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +15
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +90
   ASP.template_site_master.__BuildControlMainContent() in d:\vhosts\mkjsc.com.vn\httpdocs\Template\Site.Master:137
   ASP.template_site_master.__BuildControlpageMain() in d:\vhosts\mkjsc.com.vn\httpdocs\Template\Site.Master:60
   ASP.template_site_master.__BuildControlTree(template_site_master __ctrl) in d:\vhosts\mkjsc.com.vn\httpdocs\Template\Site.Master:1
   ASP.template_site_master.FrameworkInitialize() in d:\vhosts\mkjsc.com.vn\tmp\root\ce7ade08\7ddc1bd6\App_Web_vz0ndkbb.0.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.4700.0