{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/DataProtection/issues/53","labels_url":"https://api.github.com/repos/aspnet/DataProtection/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/DataProtection/issues/53/comments","events_url":"https://api.github.com/repos/aspnet/DataProtection/issues/53/events","html_url":"https://github.com/aspnet/DataProtection/issues/53","id":59079643,"number":53,"title":"Assertion fails typeof(IAuthenticatedEncryptorConfigurationXmlReader).IsAssigna bleFrom(encryptorConfigurationParserType)","user":{"login":"swaggerloaf","id":1775877,"avatar_url":"https://avatars.githubusercontent.com/u/1775877?v=3","gravatar_id":"","url":"https://api.github.com/users/swaggerloaf","html_url":"https://github.com/swaggerloaf","followers_url":"https://api.github.com/users/swaggerloaf/followers","following_url":"https://api.github.com/users/swaggerloaf/following{/other_user}","gists_url":"https://api.github.com/users/swaggerloaf/gists{/gist_id}","starred_url":"https://api.github.com/users/swaggerloaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaggerloaf/subscriptions","organizations_url":"https://api.github.com/users/swaggerloaf/orgs","repos_url":"https://api.github.com/users/swaggerloaf/repos","events_url":"https://api.github.com/users/swaggerloaf/events{/privacy}","received_events_url":"https://api.github.com/users/swaggerloaf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T14:25:51Z","updated_at":"2015-02-27T00:11:16Z","closed_at":"2015-02-27T00:11:16Z","body":"Using runtime  1.0.0-beta4-11143 clr     x86\r\n\"Microsoft.AspNet.Security.DataProtection\": \"1.0.0-beta4-10918\"\r\n\r\nMVC app makes call to Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager\r\nand receives \r\nSystem.Security.Cryptography.CryptographicException: Assertion failed: TODO: typeof(IAuthenticatedEncryptorConfigurationXmlReader).Is\r\nbleFrom(encryptorConfigurationParserType)\r\n\r\n<pre>\r\n    \"dependencies\": {\r\n        \"EntityFramework.SqlServer\": \"7.0.0-beta4-*\",\r\n        \"EntityFramework.Commands\": \"7.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Mvc\": \"6.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Diagnostics\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Diagnostics.Entity\": \"7.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Identity.EntityFramework\": \"3.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Security.Cookies\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Server.IIS\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Server.WebListener\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.StaticFiles\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.Framework.ConfigurationModel.Json\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.Framework.CodeGenerators.Mvc\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.Framework.Logging\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.Framework.Logging.Console\": \"1.0.0-beta4-*\",\r\n        \"Microsoft.AspNet.Security.DataProtection\": \"1.0.0-beta4-10918\"\r\n</pre>\r\n<pre>\r\nActive Version           Runtime Architecture Location                   Alias\r\n------ -------           ------- ------------ --------                   -----\r\n       1.0.0-beta3       clr     x64          C:\\Users\\Glenn\\.k\\runtimes\r\n       1.0.0-beta3       clr     x86          C:\\Users\\Glenn\\.k\\runtimes\r\n       1.0.0-beta3       coreclr x64          C:\\Users\\Glenn\\.k\\runtimes\r\n       1.0.0-beta3       coreclr x86          C:\\Users\\Glenn\\.k\\runtimes\r\n       1.0.0-beta4-11138 clr     x64          C:\\Users\\Glenn\\.k\\runtimes\r\n       1.0.0-beta4-11138 coreclr x64          C:\\Users\\Glenn\\.k\\runtimes\r\n       1.0.0-beta4-11143 clr     x64          C:\\Users\\Glenn\\.k\\runtimes\r\n  *    1.0.0-beta4-11143 clr     x86          C:\\Users\\Glenn\\.k\\runtimes default\r\n       1.0.0-beta4-11143 coreclr x64          C:\\Users\\Glenn\\.k\\runtimes\r\n</pre>\r\n<pre>\r\n[INFORMATION:Microsoft.Net.Http.Server.WebListener] Listening on prefix: http://localhost:5000/\r\nStarted\r\n[ERROR:Microsoft.AspNet.Server.WebListener.MessagePump] ProcessRequestAsync\r\nSystem.Security.Cryptography.CryptographicException: Assertion failed: TODO: typeof(IAuthenticatedEncryptorConfigurationXmlReader).IsAssigna\r\nbleFrom(encryptorConfigurationParserType)\r\n   at Microsoft.AspNet.Cryptography.CryptoUtil.Fail(String message)\r\n   at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager.ParseKeyElement(XElement keyElement)\r\n   at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager.GetAllKeys()\r\n   at Microsoft.AspNet.DataProtection.KeyManagement.KeyRingProvider.CreateCachedKeyRingInstanceUnderLock(DateTime utcNow, CachedKeyRing exis\r\ntingCachedKeyRing)\r\n   at Microsoft.AspNet.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRing()\r\n   at Microsoft.AspNet.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(Byte[] unprotectedData)\r\n   at Microsoft.AspNet.Mvc.AntiForgeryTokenSerializer.Serialize(AntiForgeryToken token)\r\n   at Microsoft.AspNet.Mvc.AntiForgeryTokenStore.SaveCookieToken(HttpContext httpContext, AntiForgeryToken token)\r\n   at Microsoft.AspNet.Mvc.AntiForgeryWorker.SaveCookieTokenAndHeader(HttpContext httpContext, AntiForgeryToken newCookieToken)\r\n   at Microsoft.AspNet.Mvc.AntiForgeryWorker.GetFormInputElement(HttpContext httpContext)\r\n   at Microsoft.AspNet.Mvc.Rendering.DefaultHtmlGenerator.GenerateAntiForgery(ViewContext viewContext)\r\n   at Microsoft.AspNet.Mvc.Rendering.HtmlHelper.AntiForgeryToken()\r\n   at Asp.ASPV__Views_Account_Register_cshtml.<ExecuteAsync>d__13.MoveNext() in /Views/Account/Register.cshtml:line 11\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.Razor.RazorView.<RenderPageCoreAsync>d__17.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.Razor.RazorView.<RenderPageAsync>d__16.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.Razor.RazorView.<RenderAsync>d__15.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.ViewExecutor.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.ViewResult.<ExecuteResultAsync>d__16.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.<InvokeResultAsync>d__44.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.<InvokeResultFilterAsync>d__43.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.<InvokeAllResultFiltersAsync>d__42.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.<InvokeResourceFilterAsync>d__37.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.<InvokeAsync>d__32.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.MvcRouteHandler.<InvokeActionAsync>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Mvc.MvcRouteHandler.<RouteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Routing.Template.TemplateRoute.<RouteAsync>d__25.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Builder.RouterMiddleware.<Invoke>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Diagnostics.Entity.MigrationsEndPointMiddleware.<Invoke>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.<Invoke>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.<Invoke>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNet.Server.WebListener.MessagePump.<ProcessRequestAsync>d__19.MoveNext()\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/aspnet/DataProtection/issues/comments/76303785","html_url":"https://github.com/aspnet/DataProtection/issues/53#issuecomment-76303785","issue_url":"https://api.github.com/repos/aspnet/DataProtection/issues/53","id":76303785,"user":{"login":"GrabYourPitchforks","id":1746272,"avatar_url":"https://avatars.githubusercontent.com/u/1746272?v=3","gravatar_id":"","url":"https://api.github.com/users/GrabYourPitchforks","html_url":"https://github.com/GrabYourPitchforks","followers_url":"https://api.github.com/users/GrabYourPitchforks/followers","following_url":"https://api.github.com/users/GrabYourPitchforks/following{/other_user}","gists_url":"https://api.github.com/users/GrabYourPitchforks/gists{/gist_id}","starred_url":"https://api.github.com/users/GrabYourPitchforks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrabYourPitchforks/subscriptions","organizations_url":"https://api.github.com/users/GrabYourPitchforks/orgs","repos_url":"https://api.github.com/users/GrabYourPitchforks/repos","events_url":"https://api.github.com/users/GrabYourPitchforks/events{/privacy}","received_events_url":"https://api.github.com/users/GrabYourPitchforks/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T00:11:16Z","updated_at":"2015-02-27T00:11:16Z","body":"`Microsoft.AspNet.Security.DataProtection` was renamed to `Microsoft.AspNet.DataProtection`. Update your DataProtection, MVC, Security, and Identity references to latest and the error should go away. Please feel free to reopen this issue if updating does not address the problem."}}