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 85: 
Line 86:         '---create the breadcrumb link
Line 87:         breadCrumbs1.Department(fvProductDetails.DataKey("departmentID").ToString, fvProductDetails.DataKey("departmentName")) = fvProductDetails.DataKey("departmentName")
Line 88:         If fvProductDetails.DataKey("subdepartmentID").ToString <> "" Then
Line 89:             breadCrumbs1.SubDepartment(fvProductDetails.DataKey("departmentID").ToString, fvProductDetails.DataKey("subdepartmentID").ToString) = fvProductDetails.DataKey("subDepartmentName").ToString

Source File: C:\inetpub\wwwroot\AdamsExtract\ProductDetails.aspx.vb    Line: 87

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ProductDetails.fvProductDetails_DataBound(Object sender, EventArgs e) in C:\inetpub\wwwroot\AdamsExtract\ProductDetails.aspx.vb:87
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +109
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +165
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +151
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   System.Web.UI.WebControls.FormView.DataBind() +10
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +114
   System.Web.UI.WebControls.FormView.EnsureDataBound() +194
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +76
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +31
   System.Web.UI.Control.FindControl(String id) +14
   ProductDetails.ProductDetails_PreRender(Object sender, EventArgs e) in C:\inetpub\wwwroot\AdamsExtract\ProductDetails.aspx.vb:369
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +9880346
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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