Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6200565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:23:25+00:00 2026-05-24T04:23:25+00:00

I am using asp.net membership provider with mysql and iis7, and had no problem

  • 0

I am using asp.net membership provider with mysql and iis7, and had no problem for a long time with users logging in. But now suddenly users can’t log in. I’m not sure what happend. Some points of interest are:

-I was trying to implement the change password and reset password features when this happened. All I did was dragged and dropped the controls for those features and set up smtp. When those reset passwords weren’t working I added an additional membership tag as outlined here: http://peterkellner.net/2007/02/15/resetpasswordaspnet/. But I removed it and as far as I know, my web.config is the same as it was before.

-I’ve read that this could happen if the application name is not specified in web.config. My web.config has applicationName=”/”

-I’m not sure how to use Event Viewer to help figure out the problem. I don’t see any failed login attempts at the time I try to login. Maybe I’m not looking in the right place

-The users trying to log in are not locked out

-If I create a new account, I cannot log in to that account either!

-This is wierd but there is an account I created a long time ago, and I CAN log in to that one!

-This is the part of my web.config that may be of relevance:

    <authentication mode="Forms">
  <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership defaultProvider="MySQLMembershipProvider">
  <providers>
    <clear/>
    <remove name="MySQLMembershipProvider"/>
    <add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" applicationName="/" description="MySQL default application" connectionStringName="LocalMySqlServer" writeExceptionsToEventLog="True" autogenerateschema="True" enablePasswordRetrieval="False" enablePasswordReset="True" requiresQuestionAndAnswer="False" requiresUniqueEmail="True" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
  </providers>
</membership>

Please help! I’ve been pulling my hair over this for a couple of days now! Thanks for your interest!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:23:28+00:00Added an answer on May 24, 2026 at 4:23 am

    Let’s work through this:

    1. The membership provider will use a salted SHA1 hash of the password.
    2. The salt and the hash are stored in the table aspnet_Membership, assuming you’ve not implemented a custom provider (BTW – this is why the hashed values are different – the salts are different)
    3. On login, the membership provider will pull back the membership record, hash the password you entered with the salt from the record then compare the results

    What you need to remember is that hashing is deterministic so every time you hash the same input (plain text password plus hash), you get the same output. What’s obviously happening in your case is that you’re either not creating the same hashed password (possibly the wrong salt), or you’re not comparing the hashed output to the correct value. When I say “you”, it’s obviously the membership provider which takes care of this, it’s just behaving a little differently due to a configuration change.

    So where can this go wrong? Here are some things to check:

    1. Is the correct membership record actually being pulled back from MySql? Check this using a MySql profiler.
    2. If you try manually hashing the password using the correct salt for the account, does it match the password in the database? Refer to this question to reproduce the hashing process.

    Basically, just break the process down into smaller units and validate that each one is working correctly. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been playing around with using MySql as the membership provider for asp.net mvc
I am using asp.net membership provider for managing users. I have a requirement to
I'm using the ASP.NET membership provider for authentication of users in my web app.
I am using the ASP.NET membership provider controls (ChangePassword and PasswordRecovery) and they generally
I'm using the ASP.NET SQL Membership Provider. So, there's an aspnet_Users table that has
I am using asp.net forms authentication, membership provider and role provider. You can refer
I have been reading up on porting ASP.NET Membership Provider into .NET 3.5 using
I have a ASP.NET MVC site using Membership Provider. I have trouble testing some
Example scenario in an ASP.NET application using SQL Server membership provider : 1) a
I have an ASP.NET 3.5 Web Site using the standard SQL Membership Provider. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.