Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP.Net Membship Never Returns DuplicateEmail

Posted on 2009-05-18
1
Medium Priority
?
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
cdaly33 earned 1000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

636 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