{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/107","labels_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/107/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/107/events","html_url":"https://github.com/aspnetboilerplate/module-zero/issues/107","id":106511820,"number":107,"title":"System.InvalidOperationException: UserId not found","user":{"login":"emaish","id":6557160,"avatar_url":"https://avatars.githubusercontent.com/u/6557160?v=3","gravatar_id":"","url":"https://api.github.com/users/emaish","html_url":"https://github.com/emaish","followers_url":"https://api.github.com/users/emaish/followers","following_url":"https://api.github.com/users/emaish/following{/other_user}","gists_url":"https://api.github.com/users/emaish/gists{/gist_id}","starred_url":"https://api.github.com/users/emaish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emaish/subscriptions","organizations_url":"https://api.github.com/users/emaish/orgs","repos_url":"https://api.github.com/users/emaish/repos","events_url":"https://api.github.com/users/emaish/events{/privacy}","received_events_url":"https://api.github.com/users/emaish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T08:51:46Z","updated_at":"2015-09-15T13:22:27Z","closed_at":null,"body":"Dear Halil,\r\ni got this exception when i try to use UserManager.IsInRoleAsync or UserManager.GetRoleAsync\r\n\r\nSystem.InvalidOperationException: UserId not found.     at Microsoft.AspNet.Identity.UserManager`2.<GetRolesAsync>d__ac.MoveNext()  ---\r\n\r\nit was working long time ago in old versions."},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/comments/140390418","html_url":"https://github.com/aspnetboilerplate/module-zero/issues/107#issuecomment-140390418","issue_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/107","id":140390418,"user":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T13:22:27Z","updated_at":"2015-09-15T13:22:27Z","body":"Maybe user user was deleted or he has another TenantId than the active one? Can you check the generated SQL in SQL Profiler and share with us.\r\n "}}