Home > DeveloperSection > Forums > Problem in forms authentication
Chintoo Semi

Total Post:135

Posted on    August-27-2014 1:27 AM


 1 Reply(s)
 819  View(s)
Rate this:

I am using forms authentication in my web site and I defined this in my config.

 Therefore I have an ASPNETDB.MDF. So do I need to have a database called ASPNETDB.MDF in my web host? 

If that is the case then how do I connect this so that my site uses this to verify users? 

Sumit Kesarwani

Total Post:378

Posted on    August-27-2014 2:49 AM

Hi Chintoo,


<clear />

    <add name="NewConnectionString" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" providerName="System.Data.SqlClient" />





            <add name="AspNetSqlMembershipProvider"


                type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />



Don't want to miss updates? Please click the below button!

Follow MindStick