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 1926:                            }
Line 1927:                        }
Line 1928:                        string description = getCleanString(dsResourceInfo.Tables[0].Rows[0]["Description"].ToString().Substring(0,170))+("...");
Line 1929:                        string Title = getCleanString(dsResourceInfo.Tables[0].Rows[0]["AssetName"].ToString());
Line 1930:                        string LP_url;

Source File: d:\Websites\InformationSecurity.Report\httpdocs\lp-builder-theme-14.aspx.cs    Line: 1928

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
   SAP_Great_Incentive_Compensation_Management_System.BindFormData() in d:\Websites\InformationSecurity.Report\httpdocs\lp-builder-theme-14.aspx.cs:1928
   SAP_Great_Incentive_Compensation_Management_System.Page_Load(Object sender, EventArgs e) in d:\Websites\InformationSecurity.Report\httpdocs\lp-builder-theme-14.aspx.cs:140
   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.4465.0