I had the same problem since I want to implement asp.net membership with my user user database, my solution was to override the default aspnet membership provider to control user registration and the aspnet role provider to manage the user role. For example, my custom membership provider would look like this:
namespace Entities { public class VEMembership : MembershipProvider { public override bool ValidateUser(string username, string password) {
And then in your web config file you just need to add the default service provider:
<membership defaultProvider="VEMembership"> <providers> <clear/> <add name="VEMembership" type="Entities.VEMembership" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" connectionString="VEConnectionString"/> </providers> </membership>
There are many articles on how to use the custom aspnet membership provider on google search if you need help with this. Hope this helps
source share