Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6545801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:37:48+00:00 2026-05-25T11:37:48+00:00

Im currently doing an application in .net using c# and I want to use

  • 0

Im currently doing an application in .net using c# and I want to use the change password control.

The problem is…I always get an error of “Password incorrect or New Password invalid. New Password length minimum: 1. Non-alphanumeric characters required: 0.”

Even if I supplied the correct parameters of the password and set the (minRequiredPasswordLength=”1″ minRequiredNonalphanumericCharacters=”0″) in Mebership provider in my web.config.

<asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE"
    BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
    Font-Size="0.8em" ForeColor="#333333" 
    ChangePasswordButtonText="Change" 
    ChangePasswordTitleText="Password change"
    ConfirmNewPasswordLabelText="Retype new password:" 
    NewPasswordLabelText="New Password:">
</asp:ChangePassword>

i’m implementing my own MembershipProvider:

public class MyMembershipProvider : MembershipProvider 
{
    ...

    public override int MinRequiredNonAlphanumericCharacters
    {
        get
        {
            return 0;
        }
    }

    ...
}

The web.config:

<membership defaultProvider="MyMembershipProvider" userIsOnlineTimeWindow="15">
  <providers>
    <add name="MyMembershipProvider"
      type="My.Security.BsAsMembershipProvider"
      enablePasswordRetrieval="true"
      enablePasswordReset="true"
      requiresQuestionAndAnswer="false"
      applicationName="MyApp"
      requiresUniqueEmail="true"
      passwordFormat="Clear"
      passwordStrengthRegularExpression=""
      minRequiredNonalphanumericCharacters="0"
      description="My custom membership provider"
    />
  </providers>
</membership>

Any ideas? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:37:49+00:00Added an answer on May 25, 2026 at 11:37 am

    I have found the problem, I had not implemented MyMemberShipUser ChangePassword method.

    public class MyMembershipUser : MembershipUser
    {
        public MyMembershipUser()
        {
        }
    
        public MyMembershipUser(string username)
            : base("MyMembershipProvider", username, null, "", "", "", true, true, DateTime.Today, DateTime.Today, DateTime.Today, DateTime.Today, DateTime.Today)
        {
        }
    
        public override bool ChangePassword(string oldPassword, string newPassword)        
        {
    
            //Do something
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to preserve a property between postbacks in an ASP.Net application. Currently doing
I'm currently using JScript.NET for a small UI application. The problem is that my
I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is
I am currently using ASP.Net state server to store session data in my application.
I'm using the Booksleeve library in a C#/ASP.NET 4 application. Currently the RedisConnection object
I'm currently using log4net in my ASP.NET MVC application to log exceptions. The way
I'm using selenium-rc with C# to test my asp.net mvc2 application. Currently all I
I'm currently doing the following as part of my iPhone application NSArray *paths =
I'm writing a Carbon application and we are creating JPEG files. I'm currently doing
I'm currently doing the following to use typed datasets in vs2008: Right click on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.