?
Solved

ASP.Net Membship Never Returns DuplicateEmail

Posted on 2009-05-18
1
Medium Priority
?
191 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

765 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