I have integrated the YAF 1.9.3-RC2 with umbraco v 4.0.3 on IIS 7.
and everything works fine but when I try to register a new user I will get the following error:
No node exists with id '0'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: No node exists with id '0'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
In your web.config there will be a defaultmembertype attribute on the umbraco membership provider. So if YAF is using umbracos membership, then you should set that attribute to a membertype that exists in you installation.
If you are using the Umbraco membership providers, then in the web.config, you membership provider definition will have a defaultMemberTypeAlias attribute which defines the Member Type to use. Just make sure this matches the alias of the member type you want to use, and hopefully that should do the trick.
No node exists with id '0'
I have integrated the YAF 1.9.3-RC2 with umbraco v 4.0.3 on IIS 7.
and everything works fine but when I try to register a new user I will get the following error:
No node exists with id '0'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: No node exists with id '0'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: No node exists with id '0']
umbraco.cms.businesslogic.CMSNode.setupNode() +830
umbraco.cms.businesslogic.member.MemberType..ctor(Int32 id) +52
umbraco.cms.businesslogic.member.MemberType.GetByAlias(String Alias) +180
umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\providers\members\MembersMembershipProvider.cs:381
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +357
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +208
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +561
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
Any Idea?
Sounds like it's trying to create a MemberType that doesn't exist. Make sure your member type is defined, and all references are the same
Matt
thanks mat, but how can I find out which MemberType it is trying to create because I dont have any clue? !
Ali
In your web.config there will be a defaultmembertype attribute on the umbraco membership provider. So if YAF is using umbracos membership, then you should set that attribute to a membertype that exists in you installation.
Hey Ali,
If you are using the Umbraco membership providers, then in the web.config, you membership provider definition will have a defaultMemberTypeAlias attribute which defines the Member Type to use. Just make sure this matches the alias of the member type you want to use, and hopefully that should do the trick.
Cheers
Matt
OMG !!!!
Morten and Matt You are Star, that worked you are brilliant guys.
I have changed defaultMemberTypeAlias="TestUser" to the MemberType I have defaultMemberTypeAlias="RegisteredUsers" and it worked fine.
Thanks Morten and Matt
is working on a reply...