ASP.Net Membership Change Password method does not show up
===

I have implemented a custom Membership provider. A sample of my code is shown below

    public class CustomMembershipProvider : MembershipProvider
    {
      public override bool ChangePassword(string username, string oldPassword, string newPassword)
       {
        //logic for changing password
       }
    
      public override bool ValidateUser(string username, string password)
       {
        //logic for validating user credentials
       }
    }

I then registered the above custom membership in the web.config file by using

    <membership defaultProvider="CustomMembershipProvider">
     <providers>
      <clear/>
       <add name ="CustomMembershipProvider" type="MyApplication.CustomMembershipProvider"/>
     </providers>
    </membership>

Now, when I want to authenticate a user, I can call

    System.Web.Security.Membership.ValidateUser(username, password);

and it works. However, when I want to call the method to change the password, I try

    System.Web.Security.Membership.ChangePassword(username, oldPassword, newPassword);

but it gives me intellisense and compilation errors saying that System.Web.Security.Membership does not contain the definition for ChangePassword.
How do I link my ChangePassword method to be callable from System.Web.Security.Membership or am I approaching this problem in the wrong way?

