After changing ASP.NET Core Identity to use int
rather than GUID (as per this blog post) I am receiving the following error:
ArgumentExce
As per one of the comments in the blog post:
Thank you, this article was really useful. One gotcha for me was that after swapping to use an int when I first loaded identity server again I got an error on this line
Microsoft.AspNetCore.Identity.UserStoreBase.ConvertIdFromString(string id).
Turns out I had a cookie using the old guid format, simple fix was to clear cookies.
The issue is that some of your previous logins were likely done when the ID was a GUID. You changed it to int
, and so now it doesn't know how to handle the GUID any more. The simplest solution will be to delete your cookies, effectively logging you out and forcing you to login again (using int
instead).