Server Error in '/' Application.

Length cannot be less than zero.
Parameter name: length

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: Length cannot be less than zero.
Parameter name: length

Source Error:


Line 69:                 s_group2 += i.ToString() + ",";
Line 70:         }
Line 71:         s_group1 = s_group1.Substring(0,s_group1.Length - 1);
Line 72:         s_group2 = s_group2.Substring(0, s_group2.Length - 1);
Line 73: 

Source File: c:\inetpub\wwwroot\bfnc.billiardport.com\live.aspx.cs    Line: 71

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14342653
   page_events.LoadScreen() in c:\inetpub\wwwroot\bfnc.billiardport.com\live.aspx.cs:71
   page_events.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\bfnc.billiardport.com\live.aspx.cs:39
   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.4110.0