Problem using asp.net membership

I am trying to create a login in page for a asp.net 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"
        Else                              
            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?
Mike_StevensAsked:
Who is Participating?
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:
Hi,

Can you post you web.config

Please check
<membership defaultProvider="YourMembershipProvider" hashAlgorithmType="SHA1"/>
0
Mike_StevensAuthor Commented:
<membership defaultProvider="MySqlMembershipProvider">
      <providers>
        <clear/>
        <add name="MySqlMembershipProvider"
             connectionStringName="LocalSQLServer"
             maxInvalidPasswordAttempts="10"
             applicationName="Dept_Public_Service"
             enablePasswordRetrieval="true"
             enablePasswordReset="true"
             requiresQuestionAndAnswer="false"
             requiresUniqueEmail="true"
             minRequiredPasswordLength="6"
             minRequiredNonalphanumericCharacters="0"
             type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
            passwordFormat="Clear"/>
      </providers>
    </membership>
0
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
0

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
0
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
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.