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 72: 
Line 73:         Dim SeriesGroups = ModelSeries.LoadGroupCollection()
Line 74:         Dim SubGroup = New SubGroup(CType(SeriesGroups(0).SubGroupID, Guid), _Language.ID)
Line 75: 
Line 76:         Literal_SubGroupName.Text = SubGroup.Name.SubString(0, SubGroup.Name.IndexOf(" - "))

Source File: D:\inetpub\wwwroot\wallensteinequipment_com\Web\print.aspx    Line: 74

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) +130
   ASP.print_aspx.Page_Load(Object sender, EventArgs e) in D:\inetpub\wwwroot\wallensteinequipment_com\Web\print.aspx:74
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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