{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2089","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer3","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2089/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2089/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2089/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2089","id":114020019,"number":2089,"title":"Error during load test: Collection was modified; enumeration operation may not execute","user":{"login":"vidarkongsli","id":67829,"avatar_url":"https://avatars.githubusercontent.com/u/67829?v=3","gravatar_id":"","url":"https://api.github.com/users/vidarkongsli","html_url":"https://github.com/vidarkongsli","followers_url":"https://api.github.com/users/vidarkongsli/followers","following_url":"https://api.github.com/users/vidarkongsli/following{/other_user}","gists_url":"https://api.github.com/users/vidarkongsli/gists{/gist_id}","starred_url":"https://api.github.com/users/vidarkongsli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidarkongsli/subscriptions","organizations_url":"https://api.github.com/users/vidarkongsli/orgs","repos_url":"https://api.github.com/users/vidarkongsli/repos","events_url":"https://api.github.com/users/vidarkongsli/events{/privacy}","received_events_url":"https://api.github.com/users/vidarkongsli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-10-29T10:24:08Z","updated_at":"2016-06-01T11:30:33Z","closed_at":"2015-12-06T09:44:22Z","body":"We are load testing our IdSrv-based solution. It is hosed on IIS on Windows 2012 R2, .NET 4.5.2. We get the following error message now and then, and it seems that the application pool recycles as a result of this. Any ideas about what can be the cause of this?\r\n```\r\nSystem.InvalidOperationException: Collection was modified; enumeration operation may not execute.\r\n   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()\r\n   at System.Security.Claims.ClaimsPrincipal.SelectPrimaryIdentity(IEnumerable`1 identities)\r\n   at System.Security.Claims.ClaimsPrincipal.get_Identity()\r\n   at IdentityServer3.Core.Extensions.InternalOwinExtensions.GetCurrentUserDisplayName(IOwinContext context) in c:\\local\\identity\\server3\\Core\\source\\Core\\Extensions\\InternalOwinExtensions.cs:line 289\r\n   at IdentityServer3.Core.Endpoints.AuthenticationController.<RenderLoginPage>d__6a.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Endpoints\\AuthenticationController.cs:line 911\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at IdentityServer3.Core.Endpoints.AuthenticationController.<Login>d__1.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Endpoints\\AuthenticationController.cs:line 147\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Threading.Tasks.System.Web.Http851122.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext() in c:\\local\\identity\\server3\\Core\\source\\Core\\Validation\\TokenRevocationRequestValidator.cs:line 0\r\n```\r\n\r\n<!---\r\n@huboard:{\"custom_state\":\"archived\"}\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/222965936","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2089#issuecomment-222965936","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2089","id":222965936,"user":{"login":"johnkors","id":206726,"avatar_url":"https://avatars.githubusercontent.com/u/206726?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkors","html_url":"https://github.com/johnkors","followers_url":"https://api.github.com/users/johnkors/followers","following_url":"https://api.github.com/users/johnkors/following{/other_user}","gists_url":"https://api.github.com/users/johnkors/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkors/subscriptions","organizations_url":"https://api.github.com/users/johnkors/orgs","repos_url":"https://api.github.com/users/johnkors/repos","events_url":"https://api.github.com/users/johnkors/events{/privacy}","received_events_url":"https://api.github.com/users/johnkors/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T11:30:33Z","updated_at":"2016-06-01T11:30:33Z","body":"Agreed. My HTML was also pretty funny as of this.\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html ng-app=\"app\" ng-csp ng-controller=\"LayoutCtrl\">\r\n<head>\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n    <title>Ice Identity Server</title>\r\n    <link href='/oauth2/assets/styles.min.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n<link href='/oauth2/../Content/site.css' rel='stylesheet'>\r\n...\r\n..\r\n..\r\n.\r\n.\r\n.\r\n.\r\n```"}}
{"actor":{"display_login":"johnkors"}}