Problem using Create User Wizard control

J

John

Hi

I am using the Create User Wizard and am getting the 'Password length
minimum: 7. Non-alphanumeric characters required: 1.' error when trying to
create a new user. What am I doing wrong?

Also is there a way to not use security question and answer in the wizard?

Thanks

Regards
 
J

Joshua Flanagan

You need to configure the Membership provider in your web.config file.

The properties you care about are:
requiresQuestionAndAnswer
minRequiredPasswordLength
minRequiredNonalphanumericCharacters

Example:
<membership defaultProvider="YourSqlProvider">
<providers>
<add
name="YourSqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="SqlServices"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
/>
</providers>
</membership>


Joshua Flanagan
http://flimflan.com/blog
 
J

John

Thanks. What would be the sql provider string for a typical sql server
2005/visual studio 2005 install on c: drive

Regards
 
J

Joshua Flanagan

I'm not sure what you mean by "sql provider string".

The string used in the defaultProvider attribute of the membership
element, and the "name" attribute of the add element, can be anything.
Just make it up - it doesn't have any meaning, it is just a way to
reference your configured provider.

If you are asking for an example of the entire configuration section,
try looking in your machine.config for the default configured provider.
On a default install, where c:\windows is your windows folder, the file
is at:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config

If you open that file and search for "AspNetSqlMembershipProvider", you
will find the default configured membership provider.

It uses the "LocalSqlServer" connection string, which is also defined in
machine.config. Search for it, and you should find it within a
connectionStrings element. That will give you the connection information
for the SQL Server installed with VS2005.

Hope that helps.

Joshua Flanagan
http://flimflan.com/blog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top