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 100:
Line 101:            Category cat = new CategoryBLL(AppContext.CurrentSiteID).GetByID(int.Parse(Request["CategoryID"]), AppContext.CurrentLanguage.LanguageID);
Line 102:            PageControl.Breadcrumb = URLHelper.BuildBreadcrumb(cat.OriginalPath, URLHelper.GetSubText(this.articleType), this.SubPage, "c");
Line 103:            this.rpt_cate.DataSource = new Category[] { cat }; ;
Line 104:            (this.Page.Master as MasterPageBase).Keyword = cat.CategoryName;

Source File: d:\Webspace\vinaes.com.vn\httpdocs\Pages\Products.ascx.cs    Line: 102

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Pages_Products.BindData() in d:\Webspace\vinaes.com.vn\httpdocs\Pages\Products.ascx.cs:102
   PageControl.OnInit(EventArgs e) in d:\Webspace\vinaes.com.vn\httpdocs\App_Code\PageControl.cs:32
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
   System.Web.UI.ControlCollection.Add(Control child) +80
   _Default.LoadControl() in d:\Webspace\vinaes.com.vn\httpdocs\Default.aspx.cs:80
   _Default.OnInitComplete(EventArgs e) in d:\Webspace\vinaes.com.vn\httpdocs\Default.aspx.cs:25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467


Version Information: Microsoft .NET Framework Version:2.0.50727.8964; ASP.NET Version:2.0.50727.8962