Server Error in '/' Application.

Index and length must refer to a location within the string.
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: Index and length must refer to a location within the string.
Parameter name: length

Source Error:


Line 266:        {
Line 267:            
Line 268:            throw;
Line 269:        }
Line 270:    }

Source File: d:\web-sites\EXFAuctions\AuctionDetail.aspx.cs    Line: 268

Stack Trace:


[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14342676
   AuctionDetail.Page_Load(Object sender, EventArgs e) in d:\web-sites\EXFAuctions\AuctionDetail.aspx.cs:268
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.<LoadRecursiveAsync>d__246.MoveNext() +289
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   System.Web.Util.WithinCancellableCallbackTaskAwaiter.GetResult() +33
   System.Web.UI.<ProcessRequestMainAsync>d__523.MoveNext() +6951


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