Copied to clipboard

Flag this post as spam?

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


  • Dan 1288 posts 3921 karma points c-trib
    Jan 27, 2010 @ 13:36
    Dan
    1

    Simple password protection error: 'oldPassword must not be empty'

    Hi,

    I have an error when trying to set simple password protection on a folder on v4.0.3.  The error, when I add the user is:

    Server Error in '/' Application.

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

    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: The parameter 'oldPassword' must not be empty.
    Parameter name: oldPassword

    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: The parameter 'oldPassword' must not be empty.
    Parameter name: oldPassword]
    System.Web.Util.SecUtility.CheckPasswordParameter(String& param, Int32 maxSize, String paramName) +1975982
    System.Web.Security.MembershipUser.ChangePassword(String oldPassword, String newPassword) +35
    umbraco.presentation.umbraco.dialogs.protectPage.protect_Click(Object sender, CommandEventArgs e) +545
    System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +108
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
    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



    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016

     

     

    Can anyone suggest a solution?

  • Dennis Milandt 190 posts 517 karma points
    Mar 08, 2010 @ 22:52
    Dennis Milandt
    0

    I can confirm this issue :-(

    /Dennis

  • Dennis Milandt 190 posts 517 karma points
    Mar 08, 2010 @ 23:02
    Dennis Milandt
    0

    To make single user protection work, change the UmbracoMembershipProvider in web.config.

    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Clear" />

    enablePasswordRetrieval must be true

    enablePasswordReset must be true

    passwordFormat must be Clear

    /Dennis

  • Dan 1288 posts 3921 karma points c-trib
    Mar 31, 2010 @ 00:59
    Dan
    0

    Again I've come up against this issue.  I've done what you suggest Dennis but still no joy.  Anyone know how to get this working?

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

    I'm using 4.0.4.2 and have just had this problem, too. The solution Dennis posted doesn't work for me. I've also ensured the defaultMemberTypeAlias matches one in the Member Types section.

Please Sign in or register to post replies

Write your reply to:

Draft