Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 423:                ' Check if cat group is imbeded in 
Line 424:                Dim bGoDeeeper As Boolean = True
Line 425:                Dim iMenuIDSelected As Integer = CType(Me.Path.Item(Me.Path.Count - 1), Menu2_Path).ID
Line 426:                '0Me.InMenu2CatalogueConn()
Line 427:                For Each item As Menu2_Menu2CatalogueConnection In Me.Menu2CatalogueConn()

Source File: C:\inetpub\wwwWebterapija\App_Code\Menu2.vb    Line: 425

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +7503976
   B2C.Menu2_List.GenerateCataloguePath(Int32 RecordID) in C:\inetpub\wwwWebterapija\App_Code\Menu2.vb:425
   B2C.Menu2_List.GenerateMenu() in C:\inetpub\wwwWebterapija\App_Code\Menu2.vb:294
   _Default.get_Manager() in C:\inetpub\wwwWebterapija\Default.aspx.vb:113
   _Default.Page_PreInit(Object sender, EventArgs e) in C:\inetpub\wwwWebterapija\Default.aspx.vb:399
   System.Web.UI.Page.OnPreInit(EventArgs e) +8798198
   System.Web.UI.Page.PerformPreInit() +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762