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 290:        catch (Exception ex)
Line 291:        {
Line 292:            throw;
Line 293:            return "0";
Line 294:        }

Source File: d:\Websites\SA\PyleAudio\App_Code\GetPath.cs    Line: 292

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   GetPath.GetCatId(String querystring1) in d:\Websites\SA\PyleAudio\App_Code\GetPath.cs:292
   GetPath.CheckForTitle(String querystring, String& MetaTag, String& MetaDesc) in d:\Websites\SA\PyleAudio\App_Code\GetPath.cs:303
   GetPath.CreateBreadCrum(String querystring, String pagename, String& title, String& categoryname, String& MetaTag, String& MetaDesc, String& categories) in d:\Websites\SA\PyleAudio\App_Code\GetPath.cs:152
   SubCategories.Page_Load(Object sender, EventArgs e) in d:\Websites\SA\PyleAudio\SubCategories.aspx.cs:35
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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