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 77:                 {
Line 78:                     Getdescription = Getdescription.Substring(0, 200);
Line 79:                     Getdescription = Getdescription.Substring(0, Getdescription.LastIndexOf(' '));
Line 80:                 }
Line 81: 

Source File: d:\Inetpub\wwwroot\server88\deshwani\article\news.aspx.cs    Line: 79

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +13148884
   Article_news.Page_Load(Object sender, EventArgs e) in d:\Inetpub\wwwroot\server88\deshwani\article\news.aspx.cs:79
   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.4676.0