Firstly, the error clearly shows you that it couldnt find the stored proc in your database.
So you need to check:-
the stored proc in your database, whether it exists.
if exists, check your database connection string in your web config
Make sure you have properly installed the tables and stored proc using
aspnet_regsql.exe under
C:\Windows\Microsoft.NET\Framework\v2.0.50727
Then.. what you need to do is.. register your provider. As a beginner to Membership Provider, I recommend you to use the default provider. So you have to put in the following piece of tags into your web.config under <system.web>
Then.. remember to create your ConnectionString which hold your membership tables and stored proc and replace it to the
connectionStringName property of the provider.
Other than that, you need to change your Authentication section in your web.config
<authentication
mode="Forms"
>
<
forms
cookieless="AutoDetect"
defaultUrl="~/default.aspx"
loginUrl="~/login.aspx"
/>
</
authentication>
to test it.. simply drag the create user wizard control and login control then it should work.
chrispar
Member
10 Points
5 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Oct 24, 2008 10:11 AM|LINK
Firstly, the error clearly shows you that it couldnt find the stored proc in your database.
So you need to check:-
Make sure you have properly installed the tables and stored proc using aspnet_regsql.exe under
C:\Windows\Microsoft.NET\Framework\v2.0.50727
Then.. what you need to do is.. register your provider. As a beginner to Membership Provider, I recommend you to use the default provider. So you have to put in the following piece of tags into your web.config under <system.web>
<membership><
providers> <clear /><
add name="SampleMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="YOUR_DB_CON" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" /> </providers></
membership>Then.. remember to create your ConnectionString which hold your membership tables and stored proc and replace it to the connectionStringName property of the provider.
Other than that, you need to change your Authentication section in your web.config
<authentication mode="Forms" ><
forms cookieless="AutoDetect" defaultUrl="~/default.aspx" loginUrl="~/login.aspx" /></
authentication>to test it.. simply drag the create user wizard control and login control then it should work.
Regards,
Chris Par
http://chrispar.blogspot.com
.NET 2.0
estheria
Member
6 Points
3 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Oct 27, 2008 01:04 AM|LINK
Thanks...
Now, I can login to the application.
:)
footinface
Member
6 Points
3 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Jan 31, 2009 04:30 AM|LINK
best thread ever
lyrix
Member
2 Points
7 Posts
Re: Create user web service
Jun 03, 2009 12:18 PM|LINK
i know this is an old post. but this might probably help someone.
Refer to these blogs. they provided a lot of help when i was using membership.
http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx
http://www.4guysfromrolla.com/demos/printPage.aspx?path=/articles/120705-1.aspx
http://www.4guysfromrolla.com/articles/050609-1.aspx
http://www.4guysfromrolla.com/articles/120705-1.aspx
membership control
markie1313
Member
57 Points
12 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Dec 03, 2009 10:26 PM|LINK
Yer killing me. I sat staring at this for about an hour, all the while thinking that nonalphanumeric meant a number...
thanks for the help
nemiccolo
Member
19 Points
50 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Dec 31, 2010 06:05 PM|LINK
I had the same problem so just above <add name="AspNetSqlMembershipProvider" ....
put
<remove name="AspNetSqlMembershipProvider" />
and it should work for you.
classicboyir
Member
135 Points
36 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Mar 15, 2011 09:09 AM|LINK
Add this to your web.config:
<membership defaultProvider="CustomizedProvider"> <providers> <add name="CustomizedProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="STAYNETWORKDBConnectionString" applicationName="StayNetwork" minRequiredPasswordLength="1" enablePasswordReset="false" passwordFormat="Hashed" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false"/> </providers> </membership>I hope you find it usefull
Please Mark as Answer, if you find it useful.
M.H.Sarshar