Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
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: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +77
   System.SZArrayHelper.get_Item(Int32 index) +14620876
   SitefinityWebApp.Utility.RouteHelper.GetItemCustomRouteByUrl(String url) in D:\a\1\s\SitefinityWebApp\Utility\Route.cs:278
   SitefinityWebApp.Global.OnPagePreRenderCompleteEventHandler(IPagePreRenderCompleteEvent event) in D:\a\1\s\SitefinityWebApp\Global.asax.cs:127

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +132
   System.Delegate.DynamicInvokeImpl(Object[] args) +160
   Telerik.Sitefinity.Services.Events.HandlerList.Invoke(IEvent event, Boolean throwExceptions) +239

[EventHandlerInvocationException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   Telerik.Sitefinity.Services.Events.HandlerList.Invoke(IEvent event, Boolean throwExceptions) +358
   Telerik.Sitefinity.Services.Events.EventService.Raise(IEvent event, Boolean throwExceptions) +161
   Telerik.Sitefinity.Web.PageRouteHandler.handler_PreRenderComplete(Object sender, EventArgs e) +1191
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +138
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8017


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