2.0: changing password rules

R

RAM

Hello,

I am learning .NET 2.0. I have written simple ASP.NETapplication. I would
like to change password rules, so I added to web.config:

<membership defaultProvider="AspNetSqlMembershipProvider"
userIsOnlineTimeWindow="20">

<providers>

<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="SqlServices" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />

</providers>

</membership>

The problem is when I eneter Web Site Administration Tool:

There is a problem with your selected data store. This can be caused by an
invalid server name or credentials, or by insufficient permission. It can
also be caused by the role manager feature not being enabled. Click the
button below to be redirected to a page where you can choose a new data
store.

The following message may help in diagnosing the problem: The entry
'AspNetSqlMembershipProvider' has already been added.
(d:\Inetpub\wwwroot\MIMMagazyn\web.config line 46)

Could you help me plase? Thank you!

/RAM/
 

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

Forum statistics

Threads
473,772
Messages
2,569,591
Members
45,102
Latest member
GregoryGri
Top