I am trying to validate a user using the Membership.ValidateUser() method. I pass the correct username and password, and it refuses to login me in. I put a breakpoint, and I notice the following: "This operation requires IIS integrated pipeline". I check the application pool, and it is set to use Integrated pipeline.
The create Membership.CreateUser() works fine. I am only having issue retrieving users. Below is my web.config file.
Code behind the login button:
protected void btnLogin_Click(object sender, EventArgs e)
{
getUserInfo();
}
private void getUserInfo()
{
MembershipUser user = Membership.GetUser(txtUsername.Text);
// Response.Headers["myHeader"] = "someValue";
if (Membership.ValidateUser("gagouche", "m33Gp.S953"))
{
// Boolean isPersistent = false;
// string userData = "Test";
FormsAuthenti ...
Go to the complete details ...