Monday, January 31, 2011

ASP .NET Membership settings - that worked :)

Many a time, there are situations where we have to bang our head for getting asp .net membership login controls to work!
Happens,, never mind :)
Below is the snip in the web config, which worked for me and I'm sure it will work for you all too... Mainly that happens when we miss out attributes like "applicationName" etc.

Hope this helps.

 <membership defaultProvider="CustomAspNetSqlMembershipProvider">  
                <providers>  
     <clear/>  
                     <add name="CustomAspNetSqlMembershipProvider"   
        type="System.Web.Security.SqlMembershipProvider"   
        connectionStringName="eWentDatabase"   
        applicationName="/"   
        minRequiredPasswordLength="6"  
        requiresUniqueEmail="true"   
        requiresQuestionAndAnswer="true"   
        passwordFormat="Hashed" />  
                </providers>  
           </membership>  
   <roleManager enabled="true" defaultProvider="CustomRoleProvider">  
    <providers>  
     <add name="CustomRoleProvider"   
        type="System.Web.Security.SqlRoleProvider"   
        applicationName="/"   
        connectionStringName="eWentDatabase"   
        />  
    </providers>  
   </roleManager>  

No comments:

Post a Comment