Problem using membership

I am trying to create a login in page for a site.    I created my own login page and am trying to validate the user by using the following code:

        If Membership.ValidateUser(Me.TextEditor1.Text, Me.TextEditor2.Text) = True Then
            Me.Login_Message.Text = "Login ok"
            Me.Login_Message.Text = "Not good"
        End If

       Me.TextEditor1.Text is the username and Me.TextEditor2.Text is the password

 I have one test user account i created using the create user wizard in the database. But when i use the about code to validate the user it tells me the user account is no good.   I even drop a login control on the form and it still does not work.  

What am i missing?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Johny BravoCommented:

Can you post you web.config

Please check
<membership defaultProvider="YourMembershipProvider" hashAlgorithmType="SHA1"/>
Mike_StevensAuthor Commented:
<membership defaultProvider="MySqlMembershipProvider">
        <add name="MySqlMembershipProvider"
             type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Mike_StevensAuthor Commented:
I solved my own problem:

Reason why this would not work and allow login is because IsApproved value in aspnet_membership table was set to false.    

Cannot login unless IsApproved = True

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike_StevensAuthor Commented:
I solved my own problem
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.