Solved

ASP.Net Membship Never Returns DuplicateEmail

Posted on 2009-05-18
1
186 Views
Last Modified: 2013-11-08
We have a site where users can register and all e-mail addresses should be unique.

I've got "requiresUniqueEmail" set to true in the web.config file. However the "DuplicateEmail" status is never returned, even when I create several accounts with the same e-mail address. All other status codes return fine.

I've done some reading and one guy has said that the duplicate e-mail functionality doesn't work correctly and he wrote a custom validator. Is this what I'm going to have to do or am I missing something? Thanks!
0
Comment
Question by:cfj_wagner
1 Comment
 
LVL 9

Accepted Solution

by:
cdaly33 earned 250 total points
ID: 24417394
I've used the requiresUniqueEmail feature many times and haven't had an issue with it.  Is it fully creating the user?  Try adding <clear /> to the line just above your membership provider declaration.

http://forums.asp.net/p/988826/1279896.aspx


<membership defaultProvider="Sql2000Provider">

   <providers>

      <clear />

      <add name="Sql2000Provider" type="System.Web.Security.SqlMembershipProvider"

                connectionStringName="Sql2000Services" applicationName="/211Reports"

               enablePasswordRetrieval="false" enablePasswordReset="false" requiresUniqueEmail="false"

               requiresQuestionAndAnswer="true" passwordFormat="Hashed"/>

   </providers>

</membership>

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Authentication of Web Services 3 49
Name space syntax error 12 40
Interview questions for support of a legacy ASP.NET site 4 38
Not seen Link button 5 14
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now