Login fails after upgrade to ASP.net 4.0 from 3.5
        Posted  
        
            by lomac
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by lomac
        
        
        
        Published on 2010-04-29T16:54:04Z
        Indexed on 
            2010/04/29
            16:57 UTC
        
        
        Read the original article
        Hit count: 293
        
I cannot log in using any of the membership accounts using .net 4.0 version of the app. It fails like it's the wrong password, and FailedPasswordAttemptCount is incremented in my_aspnet_membership table. (I am using membership with mysql membership provider.)
I can create new users. They appear in the database. But I cannot log in using the new user credentials (yes, IsApproved is 1).
One clue is that the hashed passwords in the database is longer for the users created using the asp.net 4.0 version, e.g 3lwRden4e4Cm+cWVY/spa8oC3XGiKyQ2UWs5fxQ5l7g=, and the old .net 3.5 ones are all like +JQf1EcttK+3fZiFpbBANKVa92c=.
I can still log in when connecting to the same db with the .net 3.5 version, but only to the old accounts, not the new ones created with the .net 4.0 version. The 4.0 version cannot log in to any accounts.
I tried dropping the whole database on my test system, the membership tables are then auto created on first run, but it's still the same, can create users, but can't log in.
© Stack Overflow or respective owner