Message:"Please enter a different password"

Last post 04-25-2005 8:06 AM by mgshortt. 9 replies.

Sort Posts:

  • Message:"Please enter a different password"

    04-20-2005, 6:52 AM
    • Member
      5 point Member
    • alloppi
    • Member since 01-23-2004, 10:51 PM
    • Posts 1

    When I create a user, it always gives error message "Please enter a different password". I try this for many times with different combination of user name and password. It's still display the same error. How can I do?

    alloppi

  • Re: Message:"Please enter a different password"

    04-20-2005, 7:57 AM
    • Member
      5 point Member
    • s0larian
    • Member since 04-20-2005, 11:56 AM
    • Posts 1
    The updated Membership providers require at least one non-alphanumeric character in the password and a minimum length of seven (7) characters. You can override these default by setting the minRequiredPasswordLength and minRequiredNonalphanumericCharacters attributes of the membership provider in your app's web.config.
  • Re: Message:"Please enter a different password"

    04-22-2005, 3:47 PM
    • Member
      140 point Member
    • chupajr
    • Member since 03-28-2005, 6:55 PM
    • Posts 28

    I'm having the same problem, and while I think I understand what you are saying, I can't get it to work. I have the folowing lines in my config.web:

    <membership userIsOnlineTimeWindow="45">
    <providers>
    <add name="AspNetSqlProvider"
       type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
       minRequiredPasswordLength="4" 
       minRequiredNonalphanumericCharacters="0"
       connectionStringName="ASPNETDB" 
       enablePasswordRetrieval="false"
       enablePasswordReset="true" 
       requiresQuestionAndAnswer="false"
       requiresUniqueEmail="false" 
       passwordFormat="Hashed" />
    </providers>
    </membership>
     

    But it gives a warning for all the attributes except name and type, saying they are not declared. So, when I try my application, it works, but none of those attributes are in place (ie still requires strong passwords).

    Any idea what I should do?

  • Re: Message:"Please enter a different password"

    04-22-2005, 11:00 PM
    • Member
      41 point Member
    • mcm
    • Member since 04-23-2005, 2:55 AM
    • Posts 23
    Thanks for you answer s0larian. I have another question though. Every time I try to view the site on a non-IE browser it prompts me for user name and password. Even entering the created admin user doesn't even work. Any ideas? This didn't happen with Beta 1.
  • Re: Message:"Please enter a different password"

    04-23-2005, 12:10 AM
    • Member
      400 point Member
    • ersheido
    • Member since 02-25-2003, 8:51 AM
    • Posts 102
    Are cookies turned on in the non-IE browser?
  • Re: Message:"Please enter a different password"

    04-23-2005, 12:29 AM
    • Member
      41 point Member
    • mcm
    • Member since 04-23-2005, 2:55 AM
    • Posts 23
    Yes they are. Currently I'm testing Mozilla Firefox. SQL privilage issues?

    http://beta.asp.net/vwd/live/pws/default.aspx

    Interestingly enough trying out the test site above Firefox can log on fine but IE doesn't seem to log on. Anyone else notice this? On the plus side the site now displays properly under Firefox unlike the version that came with Beta 1. Except for the page where you download a photo.
  • Re: Message:"Please enter a different password"

    04-23-2005, 2:44 PM
    • Member
      5 point Member
    • twannieboy
    • Member since 04-23-2005, 6:34 PM
    • Posts 1
    I have the same problem. However do not stand those data such as them above described to stand in my config.web. how I it are able solve?
    Twan.
  • Re: Message:"Please enter a different password"

    04-23-2005, 4:04 PM
    • Member
      455 point Member
    • kfarmer
    • Member since 02-19-2003, 1:31 PM
    • San Jose, CA
    • Posts 91

    So I tried setting the overrides in web.config, and they worked.  Except for one thing:

    Doing in to ASP.NET Configuration and attempting to test the connection (using the Provider Configuration section) fails with the following error:

    Server Error in '/asp.netwebadminfiles' Application.
    --------------------------------------------------------------------------------

    An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 1802 and the SqlException message is: CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
    CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:\WINDOWS\MICROSOFT.NET\FRAMEWORK\V2.0.50215\ASP.NETWEBADMINFILES\APP_DATA\ASPNETDB.MDF.MDF'.
    Creating the C__WINDOWS_MICROSOFT.NET_FRAMEWORK_V2.0.50215_ASP.NETWEBADMINFILES_APP_DATA_ASPNETDB database...

    This is true even if I log into .\sqlexpress with XM and grant the (non-admin) dev user dbcreator privs.

    My guess:  it's nothing to do with the number of non-numeric characters, and everything to do with trying to get the appropriate security permissions within the database instance.  But how?  XM's not been particularly helpful so far.

     

    Keith J. Farmer

    http://www.thuban.org

    kfarmer@thuban.org
  • Re: Message:"Please enter a different password"

    04-25-2005, 7:32 AM
    • Member
      125 point Member
    • mgshortt
    • Member since 04-05-2004, 9:49 PM
    • Posts 25

    Hi,

    Can you provide an exapmple of a working web.config file that gets around this prooblem? I'm not sure where to make the changes in the file. My current web.config is :

    <?xml version="1.0" encoding="utf-8"?>

    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

    <system.web>

    <authentication mode="Forms" />

    </system.web>

    </configuration>

    Using Wed developer Express Beta 2

     

    Thanks

    Mark

  • Re: Message:"Please enter a different password"

    04-25-2005, 8:06 AM
    • Member
      125 point Member
    • mgshortt
    • Member since 04-05-2004, 9:49 PM
    • Posts 25

    Found the answer to it here:

     

    http://forums.asp.net/900096/ShowPost.aspx

Page 1 of 1 (10 items)