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
Solved

ASP.Net Membship Never Returns DuplicateEmail

Posted on 2009-05-18
1
188 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…

856 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