Glimpse/Glimpse — Issue #146: Getting "Sequence contains more than one element" error
Author: rroman81
Created: 2011-11-30 01:03:14+00:00
State: open

Just installed Glimpse and Glimpse.Mvc3 (0.86) and started receiving this error right away:

Sequence contains more than one element

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.InvalidOperationException: Sequence contains more than one element

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:

[InvalidOperationException: Sequence contains more than one element]
System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source) +6366744
Glimpse.Mvc3.Interceptor.GetFiltersInterceptor.Intercept(IInvocation invocation) +3075
Castle.DynamicProxy.AbstractInvocation.Proceed() +804
Castle.Proxies.ControllerActionInvokerProxy.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +330
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +185
System.Web.Mvc.Controller.ExecuteCore() +159
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335
System.Web.Mvc.<>c__DisplayClassb.b__5() +62
System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +20
System.Web.Mvc.<>c__DisplayClasse.b__d() +54
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375