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?
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.
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).
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.
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.
<div style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">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?</div> <div style="PADDING-RIGHT:
10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">Twan.</div>
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.
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 :
alloppi
Member
5 Points
1 Post
Message:"Please enter a different password"
Apr 20, 2005 10:52 AM|LINK
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
s0larian
Member
5 Points
1 Post
Re: Message:"Please enter a different password"
Apr 20, 2005 11:57 AM|LINK
chupajr
Member
140 Points
28 Posts
Re: Message:"Please enter a different password"
Apr 22, 2005 07:47 PM|LINK
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" 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?
mcm
Member
77 Points
37 Posts
Re: Message:"Please enter a different password"
Apr 23, 2005 03:00 AM|LINK
ersheido
Member
448 Points
117 Posts
Re: Message:"Please enter a different password"
Apr 23, 2005 04:10 AM|LINK
mcm
Member
77 Points
37 Posts
Re: Message:"Please enter a different password"
Apr 23, 2005 04:29 AM|LINK
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.
twannieboy
Member
5 Points
1 Post
Re: Message:"Please enter a different password"
Apr 23, 2005 06:44 PM|LINK
kfarmer
Member
455 Points
91 Posts
Re: Message:"Please enter a different password"
Apr 23, 2005 08:04 PM|LINK
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.
http://www.thuban.org
kfarmer@thuban.org
mgshortt
Member
125 Points
25 Posts
Re: Message:"Please enter a different password"
Apr 25, 2005 11:32 AM|LINK
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
mgshortt
Member
125 Points
25 Posts
Re: Message:"Please enter a different password"
Apr 25, 2005 12:06 PM|LINK
Found the answer to it here:
http://forums.asp.net/900096/ShowPost.aspx