2

I am novice in asp.net and, I have design a website which is having small database (MS sql server), which is working fine on server but for users login, I have given asp.net membership security, which is not working, because its database is still in the app_data file. Now, how can I transfer membership database on my existing website's server.

Greg
  • 16,540
  • 9
  • 51
  • 97
Brij
  • 21
  • 2

2 Answers2

6

First you have to setup the SQL Server Database to implement asp.net Membership. In order to do that you have to execute the aspnet_Regsql.exe found in C:\WINDOWS\Microsoft.NET\Framework\\aspnet_regsql.exe More information Here

Next you have to create the connection strings in your web.config to point to the right database for Membership.

Scott Guthrie has an older Blog post that explains the whole process

Nikos Steiakakis
  • 5,605
  • 7
  • 44
  • 54
0

If you intend on using ASP.NET Membership security and your own database then you need to roll your own Membership class. See here for a step by step guide on how to do it.

James
  • 80,725
  • 18
  • 167
  • 237