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 305:        }
Line 306:
Line 307:        CID = '<%=this.Model.RootCategoryData.StoreProductCategory.StoreProductCategoryID%>';
Line 308:        checkInStockPgState();
Line 309:    });

Source File: d:\WebSites\LiveIBOS3_MGBuildingEpicor\IISRoot\App_Client\Views\StoreProducts\ProductList3.aspx    Line: 307

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.app_client_views_storeproducts_productlist3_aspx.__RenderMainContent(HtmlTextWriter __w, Control parameterContainer) in d:\WebSites\LiveIBOS3_MGBuildingEpicor\IISRoot\App_Client\Views\StoreProducts\ProductList3.aspx:307
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +114
   ASP._themes__pagetemplates_storeproductlist_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\WebSites\LiveIBOS3_MGBuildingEpicor\IISRoot\_Themes\_PageTemplates\StoreProductList.Master:70
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +114
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +239
   System.Web.UI.Page.Render(HtmlTextWriter writer) +37
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) in d:\DevelopmentCommon\Core\Source\ApplicationWeb\Libraries\AspNetMVC\Mvc\ViewPage.cs:119
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5491