Reputation: 1857
I have created the necessary tables (aspnet_User,....) in Sql server Management Studio 2005 in my Database named "AuctionSite". So instead of making one in App_Data folder ,i want my website to point the database (AuctionSite) MembershipProvider, ProfileProvider,RoleProvider.
What is the way to achieve this or how to configure my website administrator to point that Database?
Upvotes: 0
Views: 334
Reputation: 21928
You will need to set some properties in web.config
to point to the database but couple of other things will also need modification.
<membership>
<providers>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
applicationName="/"
</providers>
</membership>
have a look at this tutorial
Upvotes: 1