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 652:
Line 653:		Dim parentName As String
Line 654:		parentName = xf.utility.RemoveDiacritics(Context.Items("headline").ToString).Replace("-", "").Replace(" ", "-").ToLower.ToString
Line 655:		parentName = System.Text.RegularExpressions.Regex.Replace(parentName, "[^A-Za-z0-9\-]", String.Empty, RegexOptions.IgnoreCase).ToString
Line 656:

Source File: D:\Sites\web_8431371372262758274592156\www\module\module_eshop_lite_6_0_0.ascx.vb    Line: 654

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   module_eshop_lite_6_0_0.URLproductWriter(Int32 itemID, Int32 catID, Int32 productID, String title) in D:\Sites\web_8431371372262758274592156\www\module\module_eshop_lite_6_0_0.ascx.vb:654
   module_eshop_lite_6_0_0.GetProductURL(Object dataItem) in D:\Sites\web_8431371372262758274592156\www\module\module_eshop_lite_6_0_0.ascx.vb:685
   ASP.module_eshop_lite_6_0_0.__DataBinding__control14(Object sender, EventArgs e) in D:\Sites\web_8431371372262758274592156\www\module\module_eshop_lite_6_0_0.ascx:50
   System.Web.UI.Control.OnDataBinding(EventArgs e) +86
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +154
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +187
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +128
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +220
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +73
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +229
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +63
   System.Web.UI.WebControls.Repeater.DataBind() +81
   module_eshop_lite_6_0_0.loadNewProducts(DataSet newDS) in D:\Sites\web_8431371372262758274592156\www\module\module_eshop_lite_6_0_0.ascx.vb:512
   module_eshop_lite_6_0_0.Page_PreRender(Object sender, EventArgs e) in D:\Sites\web_8431371372262758274592156\www\module\module_eshop_lite_6_0_0.ascx.vb:162
   System.Web.UI.Control.OnPreRender(EventArgs e) +9884298
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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