You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error stating that "some guid" is not a valid 24 digit hex string... Right now GetUserId seems to be returning a Guid as a string. If I change this to be:
The Id is an ObjectId which would need to be a string in order for the ObjectId.Parse() function doesn't fail. This is one of the issues that I'm trying to address in the V2 implementation of the AspNet Identity provider.
Hopefully I'll get it worked out soon so you can use other concrete types.
When running this code:
UserManager.FindById(User.Identity.GetUserId())
I get an error stating that "some guid" is not a valid 24 digit hex string... Right now GetUserId seems to be returning a Guid as a string. If I change this to be:
UserManager.FindById(MongoDB.Bson.ObjectId.GenerateNewId().ToString())
... It works as expected. The problem is that obviously this won't work in the real world, but it does seem that FindById is expecting an ObjectId.
Am I missing something?
Thanks!
The text was updated successfully, but these errors were encountered: