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 444:                ' Check if cat group is imbeded in 
Line 445:                Dim bGoDeeeper As Boolean = True
Line 446:                Dim iMenuIDSelected As Integer = CType(Me.Path.Item(Me.Path.Count - 1), Menu2_Path).ID
Line 447:                '0Me.InMenu2CatalogueConn()
Line 448:                For Each item As Menu2_Menu2CatalogueConnection In Me.Menu2CatalogueConn()

Source File: C:\inetpub\wwwroot\e-trznica-si\App_Code\Menu2.vb    Line: 446

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) +14282359
   B2C.Menu2_List.GenerateCataloguePath(Int32 RecordID, Int32 iMenuID) in C:\inetpub\wwwroot\e-trznica-si\App_Code\Menu2.vb:446
   B2C.Menu2_List.GenerateMenu() in C:\inetpub\wwwroot\e-trznica-si\App_Code\Menu2.vb:311
   _Default.get_Manager() in C:\inetpub\wwwroot\e-trznica-si\Default.aspx.vb:52
   _Default.Page_PreInit(Object sender, EventArgs e) in C:\inetpub\wwwroot\e-trznica-si\Default.aspx.vb:340
   System.Web.UI.Page.OnPreInit(EventArgs e) +11691640
   System.Web.UI.Page.PerformPreInit() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


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