Hi all, I am experiencing some issues with the Membership provider. I had a working instance in production and for some reason it stopped working somewhat. I could still log in but if I try to recover a lost password I get the message:
Your answer could not be verified. Please try again.
I am able to log in but this error happens when trying to get a new temporary password on the 'RecoverPassword.apsx' page. Like I said before this worked for several weeks perfectly but something has gone wrong. I am connected to a SQL Server 2000 database
and that connection works or I would not be able to login. The email server I have configured is valid as I have tested that.
Do you require you rusers to provide a password recovery question to retrieve their password? It seems like the membership provider is expecting a security question answer and is not getting one. Check your webconfig if you don't want your users to supply
a password recovery question.
Remeber to mark as Answer if someone's answer helped you.
I do require the Security Question answer and this was working before but something changed and that is where I started noticing a problem. Like I said before this worked for several weeks. It was all tested and put into Production.
Now, I can still log in but if I click the link to take me to the password recovery page I am asked for my username and then the answer to my question. It is at this point that I get the error message. Below is my web.config
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<roleManager enabled="true"/>
<compilation debug="true">
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
brianhevans
Member
2 Points
42 Posts
Membership problems .net v2.0
Feb 17, 2009 06:26 PM|LINK
Hi all, I am experiencing some issues with the Membership provider. I had a working instance in production and for some reason it stopped working somewhat. I could still log in but if I try to recover a lost password I get the message: Your answer could not be verified. Please try again.
I am able to log in but this error happens when trying to get a new temporary password on the 'RecoverPassword.apsx' page. Like I said before this worked for several weeks perfectly but something has gone wrong. I am connected to a SQL Server 2000 database and that connection works or I would not be able to login. The email server I have configured is valid as I have tested that.
I am at a bit of a loss here. Please help....
-Brian
Rodashar
Member
602 Points
133 Posts
Re: Membership problems .net v2.0
Feb 17, 2009 07:30 PM|LINK
Do you require you rusers to provide a password recovery question to retrieve their password? It seems like the membership provider is expecting a security question answer and is not getting one. Check your webconfig if you don't want your users to supply a password recovery question.
brianhevans
Member
2 Points
42 Posts
Re: Membership problems .net v2.0
Feb 17, 2009 10:41 PM|LINK
I do require the Security Question answer and this was working before but something changed and that is where I started noticing a problem. Like I said before this worked for several weeks. It was all tested and put into Production.
Now, I can still log in but if I click the link to take me to the password recovery page I am asked for my username and then the answer to my question. It is at this point that I get the error message. Below is my web.config
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<roleManager enabled="true"/>
<compilation debug="true">
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
<system.net>
<mailSettings>
<smtp from="noreply@sample.info">
<network host="emailserver1.sample.info" password="" userName="" />
</smtp>
</mailSettings>
</system.net>
</configuration>
Does this help?
satalaj
Star
10505 Points
2031 Posts
MVP
Re: Membership problems .net v2.0
Jun 17, 2009 01:44 PM|LINK
Haven't you override Membership section in web.config ?