Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James Woodley 9 posts 29 karma points
    Mar 26, 2010 @ 15:17
    James Woodley
    0

    Creating New User

    Hi,

    I have tried to create a new user using Membership.CreateUser(txtUsername.Text, txtPassword.Text); but it just falls over each time with:

    No node exists with id '0'

    I have in my web.config:

    <!-- Membership Provider -->
        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="RTRMember" />
            <add name="AspNetSqlMemberShipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" />
          </providers>
        </membership>

    And created a UserType of RTRMember......what am I doing wrong??

    Thanks

  • David F. Hill 122 posts 242 karma points
    Apr 02, 2010 @ 19:44
    David F. Hill
    0

    Hi James,

    The ASP.Net CreateUser method is for creating members in Umbraco. Umbraco makes a distinction between members and users.

    "Members" are Web site visitors with login credentials. "Users" are Umbraco users that can access the Umbraco interface.

    Make sure you have a Member Type called "RTRMember". In Umbraco, go to Members > Member Types and create the member type there.

    Hope that helps.

    David

Please Sign in or register to post replies

Write your reply to:

Draft