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 66:             lblPageTitle.Text = cc.SubCatName
Line 67:             lblSubCatName.Text = cc.SubCatName
Line 68:             hlCatLink.Text = cc.ShopCategory.CatName ' & " <img src=""images/downarrow.gif"" align=""absMiddle""/>"
Line 69:             hlCatLink.NavigateUrl = String.Format("~/" & manUtils.SafeQueryString(cc.ShopCategory.CatName & "-cp-") & cc.ShopCategory.CatID)
Line 70:             'hlCatLink.NavigateUrl = "/show-deals-category.aspx?CatID=" & cc.ShopCategory.CatID

Source File: D:\WEBSITES\pnmoverseas.com\httpdocs\Show-Deal-Items.aspx.vb    Line: 68

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Show_Deal_Items.LoadItemsXSubCatID(Int32 SubCatID) in D:\WEBSITES\pnmoverseas.com\httpdocs\Show-Deal-Items.aspx.vb:68
   Show_Deal_Items.Page_Load(Object sender, EventArgs e) in D:\WEBSITES\pnmoverseas.com\httpdocs\Show-Deal-Items.aspx.vb:49
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975