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 / Security / November 2006

Tip: Looking for answers? Try searching our database.

Why is this an invalid password?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 28 Nov 2006 00:51 GMT
Hi;

Note: I am running this from a winforms app, not ASP.NET. My config is:
        private static string memberConfig = "<add
name='AspNetSqlMembershipProvider' " +
                "connectionStringName='MembershipSqlServer'
enablePasswordRetrieval='false' " +
                "enablePasswordReset='true' requiresQuestionAndAnswer='false'
applicationName='/WindwardPortal' " +
                "requiresUniqueEmail='false' passwordFormat='Hashed'
maxInvalidPasswordAttempts='5' " +
                "minRequiredPasswordLength='5' minRequiredNonalphanumericCharacters='0'
passwordAttemptWindow='10'/>";

And for a password of "pass1234" it says InvalidPassword

Any ideas?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

David Thielen - 28 Nov 2006 01:32 GMT
Never mind - dumb error (was going to web.config rather than to my string).

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi;
>
[quoted text clipped - 13 lines]
>
> Any ideas?
Steven Cheng[MSFT] - 28 Nov 2006 07:57 GMT
Hello Dave,

Do you mean the problem here is targeting another error in your web.config
file rather than your winform user creation code and the password you
passed in it, correct?  As far as I know, when you use the
SqlMembershipProvider to create the user, it will follow the rules you
defined in the NameValueCollection during the initialize time.

Please feel free to let me know if there is anything else we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
Registered User - 28 Nov 2006 02:10 GMT
>Hi;
>
[quoted text clipped - 13 lines]
>
>Any ideas?

Not really but the memberConfig string assignment suggests you need to
investigate using an app.config file.

regards
A.G.

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.