Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 372 posts 608 karma points
    Nov 12, 2012 @ 01:14
    Brendan Rice
    0

    On Member.Save - An item with the same key has already been added.

    sd

  • Brendan Rice 372 posts 608 karma points
    Nov 12, 2012 @ 01:17
    Brendan Rice
    0

    I am coding up a password reset user control (see code below) but when the code hits cMember.Save I get an error (shown below). This also happens in the back office when I try to save a user, can anyone help please?

                    Member cMember = Member.GetMemberFromEmail(tbEmail.Text);

                    // Found the user
                    var password = Membership.GeneratePassword(10, 1);
                    password = Regex.Replace(password, @"[^a-zA-Z0-9]", m => "9");

                    // Change the password
                    cMember.ChangePassword(password);

                    // Save the password
                    cMember.Save();

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies