473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

2.0: membership provider configuration

RAM
Hello,
I have to change password rules (minRequiredNonalphanumericCharacters="0").
According to information found in Internet I have updated web.config, but I
receive runtime error: The entry 'AspNetSqlMembershipProvider' has already
been added.
I enclose my web.config (I use Polish language). Before adding membership
section everything was OK.
I need you help, because I don't understand the problem - what's wrong.
Thank you!
/RAM/

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="Wersja" value="0.1"/>
<add key="DomyslnaBaza" value="MIMMagazynDemo"/>
<add key="BazaDemo" value="MIMMagazynDemo"/>
<add key="UzytkownikDemo" value="demo"/>
<add key="DomyslnaStawkaVAT" value="22%"/>
<add key="DomyslnaJednostkaMiary" value="szt"/>
<add key="IleMiesiecyWLogu" value="1"/>
</appSettings>
<connectionStrings>
<add name="MIMMagazynDemo"
connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|App_Data|MIM MagazynDemo.mdf;Integrated
Security=True"
providerName="System.Data.SqlClient" />
<add name="SqlServices"
connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|App_Data|asp netdb.mdf;Integrated
Security=SSPI;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<roleManager enabled="true" />
<compilation debug="true"/>
<authentication mode="Forms">
<forms name="MIMMagazyn" loginUrl="Logowanie.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<customErrors mode="RemoteOnly" defaultRedirect="Blad.html">
</customErrors>
<sessionState mode="InProc"
cookieless="false"
timeout="20"/>
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="SqlServices"
minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
</system.web>
</configuration>
Oct 10 '06 #1
1 1427
RAM
(By the way, AttachDBFileName=|App_Data| should be changed to
AttachDBFileName=|DataDirectory|...)

Użytkownik "RAM" <r_********@poczta.onet.plnapisał w wiadomo¶ci
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello,
I have to change password rules
(minRequiredNonalphanumericCharacters="0"). According to information found
in Internet I have updated web.config, but I receive runtime error: The
entry 'AspNetSqlMembershipProvider' has already been added.
I enclose my web.config (I use Polish language). Before adding membership
section everything was OK.
I need you help, because I don't understand the problem - what's wrong.
Thank you!
/RAM/

<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="Wersja" value="0.1"/>
<add key="DomyslnaBaza" value="MIMMagazynDemo"/>
<add key="BazaDemo" value="MIMMagazynDemo"/>
<add key="UzytkownikDemo" value="demo"/>
<add key="DomyslnaStawkaVAT" value="22%"/>
<add key="DomyslnaJednostkaMiary" value="szt"/>
<add key="IleMiesiecyWLogu" value="1"/>
</appSettings>
<connectionStrings>
<add name="MIMMagazynDemo"
connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|App_Data|MIM MagazynDemo.mdf;Integrated
Security=True"
providerName="System.Data.SqlClient" />
<add name="SqlServices"
connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|App_Data|asp netdb.mdf;Integrated
Security=SSPI;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<roleManager enabled="true" />
<compilation debug="true"/>
<authentication mode="Forms">
<forms name="MIMMagazyn" loginUrl="Logowanie.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<customErrors mode="RemoteOnly" defaultRedirect="Blad.html">
</customErrors>
<sessionState mode="InProc"
cookieless="false"
timeout="20"/>
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="SqlServices"
minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
</system.web>
</configuration>


Oct 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
4
by: techsupport | last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and have been wanting to remote a custom membership and profile provider. I want to take advantage of the new controls in ASP.NET...
2
by: Josh Collins | last post by:
Here is my configuration: ASP.Net 2 running on IIS6/Win2k3 Developing on WindowsXP-Pro iwth Visual Studio 2005. I am trying to utilize the Membership functionality in an ASP.net website. I...
9
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
1
by: Axford | last post by:
Hello, I am trying to implement my own custom provider for memberships, basically only id/pwd (no roles). I use the new login web control (I am using asp.net 2.0 and VS2005). In web.config I...
0
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc ...
6
by: xeroxero | last post by:
I do not have any membership provider information specified in my ASP.NET 2.0 web.config file. After digest authentication, the site "hangs" for 20 seconds and then gives a SQL Server error, I...
0
by: Alias | last post by:
Hi - I have a site that runs on a development and production server. I'd like to programmatically change the connection string the provider uses in the web.config file and have the provider use...
1
by: Ben | last post by:
Hi, When an anonymous user has created an new account (with the CreateUserWizard control), i want to let asp.net generate a password and to send it to the address of the email provided by the...
2
by: GaryDean | last post by:
My ASP.Net application, that uses the SQL Membership Provider, runs fine on my development box (server2003) as long as I use the standard provider. But, in anticipation of deployment to other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.