identityazuretable icon indicating copy to clipboard operation
identityazuretable copied to clipboard

Claims: ArgumentException: Object of type 'System.DateTimeOffset' cannot be converted to type 'System.DateTime'.

Open tbasallo opened this issue 2 years ago • 2 comments

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?

tbasallo avatar Nov 17 '23 20:11 tbasallo

This error also comes up when trying to delete a user:

await _userManager.DeleteAsync(AppUser);

tbasallo avatar Feb 07 '24 18:02 tbasallo

Please follow the data migration https://elcamino.cloud/projects/docs/identityazuretable/migration.html.

dlmelendez avatar Feb 20 '24 21:02 dlmelendez