Sometimes web hosts (such as godaddy) will set up the aspnet membership tables for you in your database as part of the setup.
When you need to set them up locally, use the following .Net framework command
When you need to set them up locally, use the following .Net framework command
//For servername you can use "(local)" if the database is a local SQL Server install
System.Web.Management.SqlServices.Install(txtServer.Text, txtUserName.Text, txtPassword.Text, txtDatabase.Text, SqlFeatures.All);
Thanks, this was very helpful!
ReplyDelete