ASP.NET simple membership provider?

允我心安 提交于 2019-12-03 00:44:54

Create your database manually (dont allow your project create your database automaticly) and when you create your database set collation to Latin1_General_CI_AS under Options..

OR

If you use Turkish character on your database your database collation has to be Turkish_CI_AS and you can change your column collation.. Follow the steps..

(P.S.: Collation is about sorting if you use Turkish character and if you want to sort like a,b,c,ç,d,e,f,g,h,ı,i,.. your database collation has to be Turkish..)

1) Right click UserName Column and click Modify..

2) Click collation..

3) And select Latin1_General..

Click ok and save your changes..

I know its little bit late but, problem is collation definition in your database. If you select "TURKISH_CI_AS" collation while creating database, MembershipProvider is not working as expected.

I guess your membership tables are named wrong or have the wrong column names. Check the line similar to

WebSecurity.InitializeDatabaseConnection(
     "StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);

in your AppStart.cshtml file.

See this link for more information: http://msdn.microsoft.com/en-us/library/webmatrix.webdata.websecurity.initializedatabaseconnection(v=vs.111).aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!