[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


MembershipProvider Password Recovery and ChangePassword not working

Posted on 2014-12-09
Medium Priority
Last Modified: 2015-11-30
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.

Question by:McLeanIS
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

by:Utkarsh Kulkarni
ID: 40512902
Can you share portion of web.config that have settings for this?

Author Comment

ID: 40522055
Here is the code:

<authentication mode="Forms">
      <forms loginUrl="Login.aspx" timeout="30"/>
      <allow users="*"/>
      <deny users="*"/>
    <membership defaultProvider="SqlMembershipProvider">
        <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"/>
    <roleManager enabled="true">
        <add name="AspNetSqlRoleProvider" connectionStringName="SEIConnectionString" applicationName="SEIOnline" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    <compilation debug="true">

Open in new window


Assisted Solution

by:Utkarsh Kulkarni
Utkarsh Kulkarni earned 2000 total points
ID: 40537425
The autherization tag consist both entries for "*" (Allow & Deny).
What exactly you need there?
Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control


Author Comment

ID: 40545561
Deny - this is a site that requires logins.

Accepted Solution

Utkarsh Kulkarni earned 2000 total points
ID: 40546360
You have to add SMTP details in web.config file.
You can refer this URL for more details Recover forgot password using passwordrecovery control in asp.net membership

Author Comment

ID: 40575285
Thank you for the reply.  I haven't had time to test it but I will try to soon.

Author Comment

ID: 41339829
Due to a change in priorities, I can't test the given solution right now but thank you for your insight and assistance.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question