Server Error in '/' Application.

StartIndex cannot be less than zero.
Parameter name: startIndex

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: StartIndex cannot be less than zero.
Parameter name: startIndex

Source Error:


Line 226:
Line 227:
Line 228:            string input = strdesc.Remove(strdesc.LastIndexOf('>'));
Line 229:
Line 230:            string str1 = input.Replace("<img src=", "");

Source File: g:\pleskvhosts\globalskill.org\bindutimes.com\rajasthan-news.aspx.cs    Line: 228

Stack Trace:


[ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex]
   System.String.Remove(Int32 startIndex) +12934165
   rajasthan_news.mainurl() in g:\pleskvhosts\globalskill.org\bindutimes.com\rajasthan-news.aspx.cs:228
   rajasthan_news.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\globalskill.org\bindutimes.com\rajasthan-news.aspx.cs:41
   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.4700.0