Using .Net Membership controls with umbraco

The asp.net membership controls will work almost straight out of the box with the umbraco membership provider with the exception of the CreateUserWizard control which requires a small change to be made to your web.config file.

There is an umbracoMembershipProvider section in the web.config file that contains a key called 'defaultMemberTypeAlias'.  The value in this key must correspond to a MemberType that exists in your Members section.

When the createUserWizard control runs it will create the user with the details supplied and then try and assign them to the memberType in the key.  If you haven't changed this value to match a real memberType you will receive an error and the user won't be created.

2 comments for “Using .Net Membership controls with umbraco”

  1. Gravatar of Peter JonesPeter Jones
    Posted Friday, January 08, 2010 at 7:58:45 AM

    Great article.

  2. Gravatar of HendyHendy
    Posted Friday, January 08, 2010 at 12:26:04 PM

    Here's another useful post on
    setting up membership with Umbraco