I want my users' email addresses to be unique. I have looked around and found various examples of code to add to the web.config file that all look similar to the following: <membership defaultProvider="CustomizedMembershipProvider">
<add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="xmxmxmxmm" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" minRequiredPasswordLength="8" minRequiredNonalphanumericCharacters="1"/>
However...whenever I add this to the web.config file and run the page with the CreateUserWizard I get the following error:
Parser Error Message: Unrecognized configuration section membership.
I am building a website based on .Net 3.5 using Visual Studio 2008.
Does anybody know how I can add the <membership> section to the web.config so that these CreateUserWizard parameters can be added...or...is there another way of going about this altogether?
Many thanks in advance...MDCragg
View Complete Post