How use default Membership, Role, Profile providers?

How use default Membership, Role, Profile providers?

Postby robertnzana » Tue 16 Sep 2008 17:37

I would like to make use of the Membership, Role and Profile providers, provided by Visual Studio 2008.

Is there a step-by-step that shows me how to do this? I cannot get the Web Site Administration Tool working properly. I would like to use it (and have it create the default tables, sp, etc...)

When I click 'test' in the Provider Tab I keep getting...

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

Here's my web.config section....
Code: Select all
       
           
               
                                         type="CoreLab.MySql.Web.Providers.MySqlMembershipProvider"
                         connectionStringName="abcConnectionString" enablePasswordRetrieval="false"
                         enablePasswordReset="true" requiresQuestionAndAnswer="false"
                         requiresUniqueEmail="false" passwordFormat="Hashed"
                         maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"
                         minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"/>
           

       

                               enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES"
                       cookieTimeout="30" cookiePath="/" cookieProtection="All">
           
               
                                     type="CoreLab.MySql.Web.Providers.MySqlRoleProvider"
                     connectionStringName="abcConnectionString"/>
           

       

       
           
               
               
                                         type="CoreLab.MySql.Web.Providers.MySqlProfileProvider"
                         connectionStringName="abcConnectionString"/>
           

       


My connection string is...

providerName="CoreLab.MySql" />


Thanks.
robertnzana
 
Posts: 23
Joined: Fri 12 Sep 2008 05:07



Return to dotConnect for MySQL