Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 45:         'getProduct = GetContentSet.Tables("tblProducts").Select("id=1")
Line 46:         'Response.Write(getProduct(0)("slug"))
Line 47:         getCat = GetContentSet.Tables("tblProductCat").Select("id=  " & getProduct(0)("categoryID"))
Line 48:         If getProduct(0)("metaTitle").ToString() = "" Then
Line 49:             Page.Header.Title = ("Macemain + Amstad - Products -" & StripHTML(getProduct(0)("Name")))

Source File: d:\macemainamstad.com\Product.aspx.vb    Line: 47

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Styles_About.Page_Load(Object sender, EventArgs e) in d:\macemainamstad.com\Product.aspx.vb:47
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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