Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

ResetPassword Requiring passwordAnswer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vernon Peppers - 01 Apr 2008 03:25 GMT
I have a site that is using membership as provided with ASP.NET.  I have a
page to reset the password, that is only available to the site administrator.
I have RequireQuestionandAnswer set to false.

web.config entries
<connectionStrings>
<add name="UserInfoConnectionString" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="ASPNETDBConnectionString" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>

<membership userIsOnlineTimeWindow="20">
<providers>
<add connectionStringName="UserInfoConnectionString"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresUniqueEmail="false" requiresQuestionAndAnswer="false"
maxInvalidPasswordAttempts="5" passwordFormat="Hashed" applicationName="/"
name="SQLProvider" type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>

VB Code
labelReset.Text = "Password for " & ddUsers.Text & vbCrLf & "has been
changed to " & User.ResetPassword()

Whenever I run the site, and try to reset a password, I get an error that
the passwordAnswer can't be null.  How do I fix this?
Steven Cheng [MSFT] - 01 Apr 2008 09:48 GMT
Hi vpeppers,

Regarding on this issue, I've found your another cross thread in the same
newsgroup. I've replied you there and provide some suggestion. Welcome to
continue followup there if you have any further questions.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?VmVybm9uIFBlcHBlcnM=?= <vpeppers@newsgroup.nospam>
>Subject: ResetPassword Requiring passwordAnswer
>Date: Mon, 31 Mar 2008 19:25:01 -0700

>I have a site that is using membership as provided with ASP.NET.  I have a
>page to reset the password, that is only available to the site administrator.
[quoted text clipped - 26 lines]
>Whenever I run the site, and try to reset a password, I get an error that
>the passwordAnswer can't be null.  How do I fix this?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.