Author: Punkcrib | Posted on: 7/11/2008 1:31:04 PM | Views : 503

I am trying to create a user programmatically without using a CreateUserWizard.  This is because the system I am designing will only allow an Administrator to create a new account, and the username and password will be determined by the Employee's ID (a unique field in a seperate table).  To be more precise, the Admin will have to enter the Employee ID, First Name, and Last name of the new user/employee, then they hit "Continue".  This checks the database for this employee and if found, creates a user account for them with their EmployeeID as both their Username and Password (which they will have to change on first login).

 The Problem is that when I call Membership.CreateUser("username", "password"), I get the error "The password-answer supplied is invalid." 

 I have searched all over the internet, always finding the same solution: to set the "requiresQuestionAndAnswer" to "fal ...

Go to the complete details ...