I am using the Membership class in System.web.security to create a bunch of users. Here is the relavent code
password = Membership.GeneratePassword(7, 0);
someUser.InitialPassword = password;
MembershipUser user = Membership.CreateUser(someUser.EmailAddress, password, lead.EmailAddress, "Hello", "Hello", true, out status);
After running the above code the out parameter status says success. I take the userId (email address) as well as the password generated by Membership.GeneratePassword to attempt to login to my app, I get Login failed. What am I doing wrong?
Note: I can use the ASP.Net configuration tool to generate a user and that user successfully logs in. I checked the table Application in the database to see if the application these users I am attemtping to register in code were being registered to a different application than the one I an running but there is only one application in that table.
I can't think of what else to try, can somebody help?
View Complete Post