I get the following error, and this error only occurs when several users click the same button. Any help / ideas would be really appreciated:
System.InvalidOperationException: The collection has been modified; enumeration operation cannot be performed. Generated: Wed, 10 Jun 2015 07:29:06 GMT
AutoMapper.AutoMapperMappingException:
Mapping types: User β User ApplicationSecurityManager.Service.User β ApplicationSecurityManager.Models.User
Target Route: User
Initial value: ApplicationSecurityManager.Service.User ---> System.InvalidOperationException: the collection has been changed; enumeration operation cannot be performed. in System.Collections.Generic.List 1.Enumerator.MoveNextRare() at AutoMapper.TypeMap.<get_AfterMap>b__1(Object src, Object dest) at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.Map(ResolutionContext context, IMappingEngineRunner mapper) at AutoMapper.Mappers.TypeMapMapper.Map(ResolutionContext context, IMappingEngineRunner mapper) at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map(ResolutionContext context) --- End of inner exception stack trace --- at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map(ResolutionContext context) at AutoMapper.MappingEngine.Map[TDestination](Object source, Action 1 choice) in ApplicationSecurityManager.UserManager.LoadUser (username String) in ApplicationSecurityManager.UserManager.get_AuthenticatedUser () in ApplicationSecurityManager.UsAeManager.sermanager. Infrastructure.ApplicationSecurityAttribute.OnAuthorization (AuthorizationContext fil terContext) in System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters (ControllerContext controllerContext, IList 1 filters, ActionDescriptor actionDescriptor) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__1e(AsyncCallback asyncCallback, Object asyncState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult 1.Begin (AsyncCallback callback, object state, Int32 timeout) when System.Web.Mvc.Async.AsyncResultWrapper.Begin [TResult] (AsyncCallback callback, object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate 1 endDelegate, Object tag, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate . Mvc.Controller <. > C__DisplayClass1d.b__17 (AsyncCallback asyncCallback, Object asyncState) with System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult 1.Begin(AsyncCallback callback, Object state, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate 1 endDelegate, object tag, Int32 timeout) in System.Web.Mvc.Controller.BeginExecuteCore 1.Begin(AsyncCallback callback, Object state, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate ) with System.Web.MvcultAs. WrappedAsyncResult 1.Begin(AsyncCallback callback, Object state, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate tag 1.Begin(AsyncCallback callback, Object state, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate 1 endgevateDelegate 1 endgevateDelegate System.Web.Mvc.Async.AsyncResultWrapper.Begin (AsyncCallback callback, Object state, Be ginInvokeDelegate beginDelegate, EndInvokeDelegate endDelegate, Object tag) in System.Web.Mvc.Controller.BeginExecute (RequestContext requestContext, AsyncCallback callback, object state) in System.Web.Mvc.MvcHandler <. > C__DisplayClass8.b__2 (AsyncCallback asyncCallback, Object asyncState) when System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult 1.Begin(AsyncCallback callback, Object state, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate 1 endDelegate, object tag, Int32 timeout) in System.Web.Mvc.Async.AsyncResultWrapper.Begin 1.Begin(AsyncCallback callback, Object state, Int32 timeout) at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate in System.Web.Mvc.MvcHandler.BeginProcessRequest (HttpContextBase httpContext, AsyncCallback callback, object state) in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () step IExecutionStep, Boolean & completedSynchronously)
This is the constructor where I think that the problem after installation is the problem, but when debugging I do not get an error.