Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
is working on a reply...