If I call UserManager.AddToRolesAsync or UserManager.RemoveFromRolesAsync with an IEnumerable with 0 results, an exception is thrown.
The given key 'users/test@test.com' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Raven.Identity.UserStore`2.UpdateAsync(TUser user, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Identity.UserManager`1.UpdateUserAsync(TUser user)
at Microsoft.AspNetCore.Identity.UserManager`1.RemoveFromRolesAsync(TUser user, IEnumerable`1 roles)
If I find some time I'll find the issue and submit a pull request, but I've been pretty busy lately.
If I call
UserManager.AddToRolesAsync
orUserManager.RemoveFromRolesAsync
with anIEnumerable
with 0 results, an exception is thrown.If I find some time I'll find the issue and submit a pull request, but I've been pretty busy lately.