ASP.NET MVC4 Forms Authentication - how can I tell which database my app is looking to when authenticating users? -


i hope answer straight forward think is. wanted sure. so, have asp.net mvc4 app uses forms authentication. have database hosted arvixe contains aspnet_ membership tables. database have specified in connection string in web.config. so, when hit login.cshtml page of app, , put credentials in, authenticating against data in database specified in web.config?

what brings question on set user in database way of mywsat (a third party web site administration tool allows managing of user accounts, roles, etc.). i've confirmed user added in aspnet_membership , aspnet_user tables (as other tables). but, when try log in using these credentials app, fails on membership.validateuser in accountcontroller. comes saying invalid username/password. ideas on might doing wrong?

here's membership provider:

<membership defaultprovider="sqlmembershipprovider" userisonlinetimewindow="15">   <providers>     <add       name="sqlmembershipprovider"       type="system.web.security.sqlmembershipprovider"       connectionstringname="defaultconnection"       applicationname="/"       enablepasswordretrieval="true"       enablepasswordreset="true"       maxinvalidpasswordattempts="5"       requiresquestionandanswer="true"       requiresuniqueemail="true"       passwordformat="encrypted" />   </providers> </membership> 

do see "connectionstringname" below? names connection string uses. @ web.config , find connection string called "defaultconnection" , make sure points correct database or change connectionstringname point correct connection string.

<membership defaultprovider="sqlmembershipprovider" userisonlinetimewindow="15">   <providers>     <add       name="sqlmembershipprovider"       type="system.web.security.sqlmembershipprovider"       connectionstringname="defaultconnection"       applicationname="/"       enablepasswordretrieval="true"       enablepasswordreset="true"       maxinvalidpasswordattempts="5"       requiresquestionandanswer="true"       requiresuniqueemail="true"       passwordformat="encrypted" />   </providers> </membership> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -