Category Archives: PasswordRecovery

PasswordRecovery

PasswordRecovery email

Hi,

I’m working on a project in VS 2010 that was created in VS 2005 & 2008. I am using the standard PasswordRecovery control. When a goes through the password recovery process, everything appears
to be normal… They enter their user name, have to answer the security question, then the "Your password has been sent to you" message is displayed. But, the email is never received. I have tried user names with several different email addresses, but no messages
are received. What is a good way to debug this?

Here are my settings:

In web.config:

<appSettings>
<!– The following line is set up for Gmail (otherwise, value="localhost") –>
<add key="MailServer" value="smtp.gmail.com"/>…

Membership Provider:

<providers><add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteConnection" applicationName="/" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"/></providers>…

Also, all of the other emails generated from my site are being sent and received successfully…

 

Thanks,

Curt

 

Have you looked at the actual Gmail account you’re using to send the emails at
www.gmail.com and see if there are any errors posted back to that address? 

Have you tried setting enablePasswordRetrieval  to true? Anyway, here you have an example of how to use password retrieval.

http://msdn.microsoft.com/en-us/library/system.web.security.membership.enablepasswordretrieval.aspx

 

Tibi, I did set enablePasswordRetrieval to true, but nothing changed. Thanks for the link, I’ll check into that…

Curt 

Christopher,

Good idea! I’m checking now…

Curt 

Well, I checked gmail and was able to determine that the emails are not being sent… Funny that the PasswordRecovery module doesn’t throw some type of error! I think I’ll just set up another Password Recovery page from scratch and see what happens

If you have logging turned on your SMTP server, you might check it to see how these emails were logged.

[RESOLVED]PasswordRecovery email error

I am having a problem sending email from the passwordrecovery control.  I am not able to fix the email settings at this time and was wondering if there was a way to show the newly generated password in a label on the page and bypass email?  I know this is
less secure, but it is my only option at the moment.  Any help would be great.

make a new page

add one textbox for user name and some element for user help

add one asp:button with text "Get New Password"

on button click write the code to generate the random password and show this password to user

1- Get User By User Name from Membership

2- Call ResetPassword Method

3- Show the new password to user

Simple Example Code:

String newPassword = "";
MembershipUser
 user = Membership.GetUser(UserName.Text);

if(user!=null)

{

newPassword = user.ResetPassword();

  lblNewPassword.text = newPassword;

}

[RESOLVED]Error Creating Control

Hi, I´ve just installed a VWD 2008 Express and when I try to add any component from the Toolbox in the form, the message "Error Creating Control – <name of component>. Duplicate component name <name of component>. Component names must be unique and case-insensitive."
stay in the place of the component.

I´ve already uninstall and reinstall the VWD 2008 Express, but not solve the trouble. Please, someone can help me? Thanks.

Please check version of the System.Web.Extensions and System.Web.dll. It should be 2.0.50727.1427 or later: perhaps you have prerelease framework installed. Similar issue is documented here:
http://support.microsoft.com/kb/921019

HI, I know this thread happened a while back, but if anyone see’s this…

… I have Visual Web Developer 2008 Express Edition & the SQL 2005 installed on my system. It was all working fine till a week or two ago. But now when I try to add a any standard control in design view I get the error:

"Duplicate component name ‘<component name>’. Component names must be unique and case-insensitive."

 

Even when I open old projects that were working fine earlier, controls are now replaced with a box with error:

"The type initializer for ‘Microsoft.Web.Design.ExtenderInformationServiceProvider’ threw an exception."

Have tried reinstalling Visual Developer.

Also the hot fix listed in the post above is for Visual Developer 2005, when I try to install it says program isn’t installed or different version.

 

Any help so as to how to fix this? Any patch for 2008?

Also if I want to remove Visual Developer completely from the system and start an install from scratch what all do I uninstall?

 Any help would be really appreciated.

 

Thanks

This has nothing to do with VWD itself, the problem, as indicated above, is in .NET framework install (System.Web or System.Web.Extensions is incorrect). Try reinstalling .NET 3.5 and please verify assemly versions as indicated above.

Nice one, adding a reference to System.Web.Extensions solved this issue for me two years later!

Thanks Mikhail. 

Hello, I have the same problem. I have Visual Studio 2010

Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel

Installed Version: Professional

I set my project target framework as .net 3.5, but I have the similar error:

Error Creating Control - PasswordRecovery1Duplicate component name 'PasswordRecovery1'. Component names must be unique and case-insensitive.
 
I tried to download the hotfix but it says different version and unavailable something. Thanks for help.

[RESOLVED]password recovery email

I am trying to implement the password recovery tool for my site. Can I use an email web service to send the email?

Hi,

According to your description, if you want to recovery the password then send mail to the mail address.

I suggest to updating the password in the DataBase, then we can sent the new password to the mail address.

There are some similar articals, please refer to the links below:

http://www.codeproject.com/Articles/15693/Password-Recovery

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.passwordrecovery.sendingmail(v=vs.110).aspx

Hope it’s useful for you.

Best Regards,

Michelle Ge