Link to home
Start Free TrialLog in
Avatar of McLeanIS
McLeanIS

asked on

MembershipProvider Password Recovery and ChangePassword not working

I am new to using asp.net Membership Provider.  I have used the CreatedUserWizard in an app with success.  However, I cannot get the PasswordRecovery and ChangePassword controls to work.  I get the message that the attempt failed.  I have the proper settings in the web.config to allow change and recovery.  I don't know how to begin to debug this.

Thanks for your input.

McLeanIS
Avatar of Utkarsh Kulkarni
Utkarsh Kulkarni
Flag of India image

Can you share portion of web.config that have settings for this?
Avatar of McLeanIS
McLeanIS

ASKER

Here is the code:

<authentication mode="Forms">
      <forms loginUrl="Login.aspx" timeout="30"/>
    </authentication>
    <authorization>
      <allow users="*"/>
      <deny users="*"/>
    </authorization>
    <membership defaultProvider="SqlMembershipProvider">
      <providers>
        <clear/>
        <add name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="Membership" enablePasswordRetrieval="true" maxInvalidPasswordAttempts="14" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Encrypted" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" description="Stores and retrieves membership data from SQL Server" applicationName="SEIOnline"/>
      </providers>
    </membership>
    <roleManager enabled="true">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" connectionStringName="SEIConnectionString" applicationName="SEIOnline" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      </providers>
    </roleManager>
    <compilation debug="true">

Open in new window

SOLUTION
Avatar of Utkarsh Kulkarni
Utkarsh Kulkarni
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Deny - this is a site that requires logins.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for the reply.  I haven't had time to test it but I will try to soon.
Due to a change in priorities, I can't test the given solution right now but thank you for your insight and assistance.