identityazuretable
identityazuretable copied to clipboard
Claims: ArgumentException: Object of type 'System.DateTimeOffset' cannot be converted to type 'System.DateTime'.
I get the following exception when trying to get users that have a claim. This used to work.
Getting claims for a single user works fine.
ArgumentException: Object of type 'System.DateTimeOffset' cannot be converted to type 'System.DateTime'.
Users = await _userManager.GetUsersForClaimAsync(new System.Security.Claims.Claim(Auth.Role, Role));
.net7 and .net 8 Versions 7-8
Do I need run a migration?
This error also comes up when trying to delete a user:
await _userManager.DeleteAsync(AppUser);
Please follow the data migration https://elcamino.cloud/projects/docs/identityazuretable/migration.html.