Link to home
Start Free TrialLog in
Avatar of fwsteal
fwsteal

asked on

asp.net 2.0 password recovery

I'm getting the following error when I try using the control:


Server Error in '/MyTest' Application.
--------------------------------------------------------------------------------
The specified e-mail address is currently not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: The specified e-mail address is currently not supported.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Any ideas?

Avatar of Bob Learned
Bob Learned
Flag of United States of America image

More information is required.  There is not enough to explain what you are trying to do.

Bob
What were you doing at the time ? Is this after the button click ? What email were you using ? What storage settings are you using for retrieval ?
Avatar of fwsteal
fwsteal

ASKER

here is the page and web.config

----------------------
pfolder/passwordrecovery.aspx -- contents:

<asp:PasswordRecovery ID="PasswordRecovery1" runat="server" MembershipProvider="MySqlMembershipProvider" SuccessPageUrl="~/Default.aspx">
            <QuestionTemplate>...</QuestionTemplate>
            <UserNameTemplate>...</UserNameTemplate>
            <SuccessTemplate>...</SuccessTemplate>
            <maildefinition IsBodyHtml="True" subject="Password Recovery" from="mailto:me@me.com" />
</asp:PasswordRecovery>

----------------------------

web.config -- contents:
<membership defaultProvider="MySqlMembershipProvider">
        <providers  >
          <add type="System.Web.Security.SqlMembershipProvider"
               name="MySqlMembershipProvider"
               connectionStringName="MySQLServer"
               applicationName="Mine"
               requiresUniqueEmail="true"
               minRequiredPasswordLength="5"
               minRequiredNonalphanumericCharacters="0"
               enablePasswordRetrieval="false"
               enablePasswordReset="true"
               />
        </providers>
</membership>

<system.net>
    <mailSettings>
      <smtp deliveryMethod="PickupDirectoryFromIis" from="me@me.com">
        <network
          host="localhost"
          port="25"
          defaultCredentials="true"
        />
      </smtp>
    </mailSettings>
</system.net>
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America 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