Ok so 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? I am sorry this seems to be like a very noob question
Share
Place the ASPNETDB.MDF in your App_Data folder.
The connection string to use is
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" />When you hook this connection string to your membership provide the authentication will use your ASPNETDB.MDF file.
——————-Try the following—————–
Sorry place a above the connection string above you should be able to change the name of the connection string. You will also need to change this in your membership element.