Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This seems to be a confusion to me. I'm working with MVC4 Simple membership just to help automate my Account process. all seems ok except when i invoke the WebSecurity.ConfirmAccount(string token) and WebSecurity.ResetPassword(string token, string newPassword) methods. both method throw and exception of long to in conversion error when passed with the correct token generated for the user but execute without error and return false when passed with the wrong token. Am i making any mistake?
Posted

1 solution

It sounds like your UserId column was created as a bigint rather than an int. The WebMatrix.WebData.SimpleMembershipProvider expects that column to be an int:

https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/WebMatrix.WebData/SimpleMembershipProvider.cs#L434[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900