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 48:     protected void BindDescription(string strDescription)
Line 49:     {
Line 50:         dtPage = Base.filesplit(strDescription);
Line 51:         AspNetPager1.RecordCount = dtPage.Rows.Count;
Line 52:         AspNetPager1.PageSize = 1;

Source File: e:\web\africau1\Travel\PackageMainItem.aspx.cs    Line: 50

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7709143
   System.String.Substring(Int32 startIndex, Int32 length) +11
   ClKunlun35.Base.filesplit(String contents) +246
   Travel_PackageMainItem.BindDescription(String strDescription) in e:\web\africau1\Travel\PackageMainItem.aspx.cs:50
   Travel_PackageMainItem.BindPackageMainItem() in e:\web\africau1\Travel\PackageMainItem.aspx.cs:30
   Travel_PackageMainItem.Page_Load(Object sender, EventArgs e) in e:\web\africau1\Travel\PackageMainItem.aspx.cs:45
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975