I manually migrate data from ASP.NET membership database to new membership structure in ASP.NET MVC4. (table name has changed from aspnet_users to Users, aspnet_membership to Memberships, and so forth)
But when try to sign in using ASP.NET MVC4 sign in dialog, it can't signed in. So I wonder that if default hash algorithm changed in MVC4 or not.
Why member can't sign in? or How can I set the hash algorithm to Sha1? or How to migrate membership d开发者_如何学运维atabase to MVC4 correctly?
Hash algorithm is not related to ASP.NET MVC binaries. It is highly likely that you misconfigured something.
On solution explorer inside VS, click on your project and there should be an icon (with a world and hammer side by side [it is scary I know] I guess) just top of your solution as follows :
Click on it to fire up the configuration manager. See if you can configure your membership data there. If not, it is sure that you misconfigured something.
UPDATE :
Please also be sure that you have configured the passwordFormat
inside the web.config correctly. It should be same as your old one.
If your passwordFormat
has been set to Encrypted
on your old app, then you should use the same machine key which you have used to create passwords before.
MVC4DP using Universal providers. How about checking configuration or Databases.
精彩评论