When you use ASP.NET membership functions, you need to specify a provider. The machine.config file (located in C: \ WINDOWS \ Microsoft.NET \ Framework \ [version] \ CONFIG) specifies the default provider that uses the local .mdf file in the app_data folder. Since you do not want this, you can override it in the web.config application file as follows:
<system.web> <membership defaultProvider="myMembershipProvider"> <providers> <clear /> <add type="System.Web.Security.SqlMembershipProvider" name="myMembershipProvider" connectionStringName="myConnectionString" applicationName="MyApplicationName" /> </providers> </membership> </system.web>
If you use other features, such as roles, personalization, or profiles, you also need to identify the providers for them in the same way.
Now you need to actually create the database / table on your server. To do this, use C: \ WINDOWS \ Microsoft.NET \ Framework \ [version] \ aspnet_regsql.exe. The connection string for your provider should point to the database that this utility will create for you.
source share