Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2006, 12:15 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Site Administration Tool not accepting data

I am working on the examples in the book and have just created my first login page. While in the Web Site Administration Tool, I was trying to create a user. The tool will not accept any password, it keeps telling me my passwords are the wrong type/size by kicking back the data and saying "Password length minimum: 7. Non-alphanumeric characters required: 1."

I used this data:

Administrator
abcdefg12
abcdefg12
[email protected]
What do i like to drink
coke

What gives. I have tried different passwords and lengths, but no matter what I do, the system keeps saying "Password length minimum: 7. Non-alphanumeric characters required: 1."

I cannot get past this example to complete the lesson. Any help would be appreciated.

Thanks,
Brian G.



 
Old March 22nd, 2006, 02:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You need to use non alphanumeric characters. So, a password like this should work:

abcd&%#$YUF

You can configure these settings in the configuration file for your site, provided you have any <membership> elements in there.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 26th, 2006, 02:59 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I like too allow simpler passwords
How do I configure to allow simpler passwords

Henrik

 
Old April 2nd, 2006, 03:19 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dipakmishra Send a message via MSN to dipakmishra Send a message via Yahoo to dipakmishra
Default

even i am facing similar trouble........how can this be solved i dont have mebership settings in web.config...sbdy told me to change these in machine.config still no result............there must be some soln to have any character as password rt now its accepting only non alphanumeric characters plz help or as i am wrkng on a project with login control.......
thanks in advance

 
Old April 2nd, 2006, 04:04 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You need to "delete", and then add the proper membership information again to the web.config file for your application. Add the following to the <system.web> node in your web.config file:
Code:
<membership>
  <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" 
        type="System.Web.Security.SqlMembershipProvider, System.Web, 
          Version=2.0.0.0, Culture=neutral,   
          PublicKeyToken=b03f5f7f11d50a3a" 
        connectionStringName="LocalSqlServer" 
        enablePasswordRetrieval="False" 
        enablePasswordReset="True" 
        requiresQuestionAndAnswer="True" 
        applicationName="/" 
        requiresUniqueEmail="true"
        passwordFormat="Hashed"
        maxInvalidPasswordAttempts="5"
        passwordAttemptWindow="10"
        passwordStrengthRegularExpression=""
        minRequiredPasswordLength="1" 
        minRequiredNonalphanumericCharacters="0"
    />
  </providers>
</membership>
Basically, this removes the entire AspNetSqlMembershipProvider from the configuration hierarchy, and then adds it again. This allows you to override the individual settings, like minRequiredPasswordLength and minRequiredNonalphanumericCharacters.

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old April 4th, 2006, 05:00 PM
Registered User
 
Join Date: Apr 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

looks like Microsofts new "secure by Default" policy strikes again. Is it just me or does it seem like although Visual Studio 2005 put in a lot of cool wizzards and drag and drop functionality the time that we nomally spend typing that code is now spent typing code to unlock various things that would normally be unlocked anyways..

ugggghhhh


Dean Forant

Programmer
Delta Mechanical Seals
44 Probber Lane
Fall River, MA. 02720
(508)324-4032 Ext 118
 
Old April 4th, 2006, 07:32 PM
Registered User
 
Join Date: Apr 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

one quick question,

I noticed you have a lot of settings there are they all required to be type in again if it or if they are left blank they will stay at the default.

for example. and possibly to clearify. you have the type set to set the culture setting to Normal and PublicKeyToken to a long value (which i'll never remember). Are these required. becuase I'll be doing several projects and I really don;t want to type all this in each time i start a new project in my web.config file.

thanks


Dean Forant

Programmer
Delta Mechanical Seals
44 Probber Lane
Fall River, MA. 02720
(508)324-4032 Ext 118
 
Old April 5th, 2006, 04:45 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's just a copy of the default settings in the machine.config file. So, you don't have to remember much, just copy it.

I think it's an either / or situation. You either remove the previous setting and create your own, supplying all settings, or you use the default setting. I don't think there is a way to override just a few settings, without changing them in machine.config which isn't a very good idea.

Did you manage to get it to work?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in web site administration tool saurabh321 ASP.NET 2.0 Basics 0 November 21st, 2006 09:51 AM
The Web Site Administration Tool alanmdunsmuir BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 July 10th, 2006 12:35 PM
Web Site Administration tool steffteo ASP.NET 2.0 Basics 2 March 18th, 2006 05:06 AM
Using the Web Site Administration Tool gdebay Visual Studio 2005 0 September 2nd, 2005 07:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.