Closed minajevs closed 9 years ago
I guess it's possible unless you put a constraint on the DB. I'd check and see if 2 rows are there.
Ok, I checked UserAccounts DB and all the IDs and emails are unique. What else can cause that crash?
GetByID is failing and it's searching by that ID -- so check for that ID being duplicate (but that doesn't make much sense to me).
Yeah, already checked ID for that user and it's unique. Damn, I am stuck
Well, given the exception and the call stack I am unsure. From the code it looks like the ID is being searched. One last thing to check is to see if the verification key is duplicated.
Well, everything is unique in the database. Looks like I need to check logs again.
The last idea is to enable logging -- that way you can watch the path as the execution flows thru the code.
Ok, it was a long night, but the problem was found. It appeared that before passwordresetkey every e-mail was verified through external service which I have no access to, and somehow that service returned that exact mail twice. Problem is fixed now, thanks for help!
Good to hear. Thx
Recently got that crash on production, where one user can't reset his password. The call is .GetPasswordResetKey(”whatever@mail.com”).
Stacktrace:
We are using membership reboot + identity server 2. It's weird that only one user gets this error. That "Sequence contains more than one element" makes me think that there are several accounts registred with one email with same ID. Is that even possible? I hope you can help me.