Copied to clipboard

Flag this post as spam?

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


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jun 14, 2010 @ 11:00
    Tim
    0

    No node exists with id 0?

    When I install the OpenID package, I get and error, after I've added the open id url to the box, and it's asked me to enter an email address to create an account (error pasted below). Any ideas what's causing this 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() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\CMSNode.cs:159
       umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\CMSNode.cs:91
       umbraco.cms.businesslogic.ContentType..ctor(Int32 id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\ContentType.cs:91
       umbraco.cms.businesslogic.member.MemberType..ctor(Int32 id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\member\MemberType.cs:19
       umbraco.cms.businesslogic.member.MemberType.GetByAlias(String Alias) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\member\MemberType.cs:99
       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.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +224
       System.Web.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, MembershipCreateStatus& status) +28
       Ulriksen.Umbraco.OpenId.Web.OpenId.Button1_Click(Object sender, EventArgs e) +265
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    
  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jun 14, 2010 @ 11:37
    Tim
    0

    Figured it out with some poking, when the package was installed, it hadn't set up the default member type in web.config. Changing that to the OpenID member type sorted out the problem.

    :)

  • Harald Ulriksen 207 posts 249 karma points
    Jun 14, 2010 @ 23:15
    Harald Ulriksen
    0

    Tim, that was strange. It should do this automatically, provided it has write access to web.config.

    Updating the web config is the last step in the installation process, so provided nothing else went wrong you should be ok. If something fails during install this is logged to the log table. Unless it failed due to write access for web.config I would very much like to have a look at that exception so I can see what went wrong.

    Thanks,
    Harald

  • Harald Ulriksen 207 posts 249 karma points
    Jun 15, 2010 @ 00:12
    Harald Ulriksen
    0

    It seems that version 4.0.4.2 of Umbraco has changed the name of the default member type. The installer will not update this value if it belives the user has changed it. Hence the problem with 0.

    I will update the package.

    Thanks,
    Harald.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jun 16, 2010 @ 01:42
    Tim
    0

    Aha, that explains it! I did wonder why it hadn't changed the web.config, as the config file was writeable.

Please Sign in or register to post replies

Write your reply to:

Draft