Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 07, 2010 @ 18:03
    Ali Sheikh Taheri
    0

    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?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jul 07, 2010 @ 19:47
    Matt Brailsford
    1

    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

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 08, 2010 @ 10:32
    Ali Sheikh Taheri
    0

    thanks mat, but how can I find out which MemberType it is trying to create because I dont have any clue? ! 

    Ali

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jul 08, 2010 @ 10:37
    Morten Bock
    0

    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.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jul 08, 2010 @ 10:38
    Matt Brailsford
    0

    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

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 08, 2010 @ 11:07
    Ali Sheikh Taheri
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft