Server Error in '/' Application.

Specified argument was out of the range of valid values.
Parameter name: index

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: Specified argument was out of the range of valid values.
Parameter name: index

Source Error:


Line 98:                 {
Line 99: 
Line 100:                    smp.Controls.RemoveAt(smp.Controls.Count - 1);
Line 101:                    HyperLink hlItem = Methods.SetNavigatePathCurrentNode(smp, title, "");
Line 102:                    smp.Controls.Add(hlItem);

Source File: e:\www\uh242286\uh242286.ukrdomen.com\viewnews.aspx.cs    Line: 100

Stack Trace:


[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index]
   System.Web.UI.ControlCollection.get_Item(Int32 index) +11138902
   System.Web.UI.ControlCollection.RemoveAt(Int32 index) +39
   viewnews.FillDescription() in e:\www\uh242286\uh242286.ukrdomen.com\viewnews.aspx.cs:100
   viewnews.Page_Load(Object sender, EventArgs e) in e:\www\uh242286\uh242286.ukrdomen.com\viewnews.aspx.cs:29
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8966; ASP.NET Version:2.0.50727.8962