Copied to clipboard

Flag this post as spam?

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


  • synsat 30 posts 43 karma points
    Jun 25, 2009 @ 22:24
    synsat
    0

    Simple Protection problem

    Hi,

    I thought I'd give it a try here as well. The problem appears when trying to make a simple password protection, see below.

    umbraco v 4.0.0 / MySQL 5.0.67 / Windows XP Pro / IIS 5.1

    ---------------------------------------------------------------------------

    "Login" template created and macro inserted as below:

    Code:
    <umbraco:Macro LogOutOnly="0" LoggedInText="test" SignOutLinkText="test2" macroAlias="MemberLogin" Alias="MemberLogin" runat="server"></umbraco:Macro>

    </div> </div>



    within form tags.

    Text type document called "Login" created with "Login" above as template.

    Now if preview the "Login" document, the login form appears, which, I guess means that the macro is used correctly, BUT

    when I right-click on a node, choose Public Access, Single user protection, I get an error when I press Update after entering login and pass, and giving "Login" page as both login and error page.

    The error I get is the following:

    Code:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    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() +363
       umbraco.cms.businesslogic.member.MemberType.GetByAlias(String Alias) +127
       umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +76
       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) +30
       System.Web.Security.Membership.CreateUser(String username, String password) +6
       umbraco.presentation.umbraco.dialogs.protectPage.protect_Click(Object sender, CommandEventArgs e) +361
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433</div> </div>



    Any ideas please?

    Regards

  • Fredrik Esseen 610 posts 906 karma points
    Jun 26, 2009 @ 08:53
    Fredrik Esseen
    100

    Upgrade to latest version and the problem will be solved.

    http://umbraco.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23321

  • synsat 30 posts 43 karma points
    Jun 28, 2009 @ 13:36
    synsat
    0

     

    Server Error in '/' Application. <hr size="1" />

    The parameter 'oldPassword' must not be empty.
    Parameter name: oldPassword

  • synsat 30 posts 43 karma points
    Jun 28, 2009 @ 13:40
    synsat
    0

     Server Error in '/' Application. </span>

     

     

    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.

    [ArgumentException: The parameter 'oldPassword' must not be empty.
    Parameter name: oldPassword]
       System.Web.Util.SecUtility.CheckPasswordParameter(String& param, Int32 maxSize, String paramName) +830664
       System.Web.Security.MembershipUser.ChangePassword(String oldPassword, String newPassword) +35
       umbraco.presentation.umbraco.dialogs.protectPage.protect_Click(Object sender, CommandEventArgs e) +541
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
    

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 28, 2009 @ 13:55
    Jan Skovgaard
    0

    What is the purpose of the two previous posts?

    If you have done the suggested upgrade and still receive errors, please try and make a better description instead of just posting the whole error.

  • synsat 30 posts 43 karma points
    Jun 28, 2009 @ 14:55
    synsat
    1

    i am really sorry about the two previous posts, and as one might guess they are not intentionally formatted and posted the way they are now. the whole look of this "forum" is very different from what i am used to (at least on my computer and in my browser.

    now, i have done the suggested upgrade, and the error posted above is what i receive. this error is mentioned in the old forum, but of no help to me. suggestions are appreciated.

    Regards

  • Fredrik Esseen 610 posts 906 karma points
    Jun 29, 2009 @ 08:22
    Fredrik Esseen
    0

    I dont know if this is the way to go but if you check the user in the db and manually add an old password? For me upgrading to latest upgrade was sufficient to solve the problem. Otherwise, remove the protection, create a new and see if that helps..?

  • Dennis Milandt 190 posts 517 karma points
    Mar 04, 2010 @ 16:52
    Dennis Milandt
    0

    I am also having this issue in version 4.0.3

    Kind regards
    Dennis Milandt

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jul 09, 2010 @ 13:06
    Dan Diplo
    0

    Same here. When I check the cmsMember table I can see it creates a member with the username I entered but with no password.

Please Sign in or register to post replies

Write your reply to:

Draft