Posted on: 12/2/2013 11:38:38 PM | Views : 748

I created a registration form myself and afetr passing the parameters to method 'CreateUser' i still get the above error. here is my code

protected void btnRegister_Click(object sender, EventArgs e) { try { Membership.CreateUser(txtUsername.Text.ToString().Trim(), txtPassword.Text.ToString(), txtEmail.Text.ToString(), txtSecurityQuestion.Text.ToString(), txtSecurityAnswer.Text.ToString()); Roles.AddUserToRole(txtUsername.Text.ToString().Trim(), "applicant"); } catch (Exception ex) { lblError.Text = "Error: User Registration Failed"; } }

Go to the complete details ...