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 119:	int t2 = strResult1.IndexOf("]endtarg");	 
Line 120:	
Line 121:	String target = strResult1.Substring(0, t2);
Line 122:
Line 123:	int t3 = strResult.IndexOf("beginnode[") + 10;

Source File: d:\Site\LIVEWEBSITE\redirectpage.aspx    Line: 121

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14599229
   ASP.redirectpage_aspx.MakeRequest(String requesttext) in d:\Site\LIVEWEBSITE\redirectpage.aspx:121
   ASP.redirectpage_aspx.OnLoad(EventArgs e) in d:\Site\LIVEWEBSITE\redirectpage.aspx:90
   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.4700.0