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 172:                                        {
Line 173:                                            descriptions = getHTMLRemove(HttpUtility.HtmlDecode(descriptions.ToString().Substring(0, 160)));
Line 174:                                            descriptions = descriptions.Substring(0, descriptions.ToString().LastIndexOf(" "));
Line 175:
Line 176:                                        }

Source File: e:\inetpub\vhosts\expertsmind.com\httpdocs\product\order.aspx.cs    Line: 174

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +12953464
   product_order.Page_Load(Object sender, EventArgs e) in e:\inetpub\vhosts\expertsmind.com\httpdocs\product\order.aspx.cs:174
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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