Server Error in '/cuic' 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 570: tempproj1 = prodetail.Substring(0, 255) Line 571: tempproj2 = prodetail.Substring(255, 255) Line 572: tempproj3 = prodetail.Substring(509, 255) Line 573: Else Line 574: tempproj1 = "" Source File: D:\placementCell\CUIC\WebForm2.aspx.vb Line: 572 Stack Trace: [ArgumentOutOfRangeException: Index and length must refer to a location within the string. Parameter name: length] System.String.Substring(Int32 startIndex, Int32 length) +226 OnlineResume.WebForm2.Ok_Click(Object sender, EventArgs e) in D:\placementCell\CUIC\WebForm2.aspx.vb:572 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1277 Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573