[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"/2025/09/14-asp.net-membership-create-user-and-invalid-email":3},{"id":4,"title":5,"body":6,"date":65,"description":62,"extension":66,"meta":67,"navigation":68,"path":69,"robots":70,"seo":71,"stem":72,"__hash__":73},"posts/2025/09/14 ASP.Net-membership-create-user-and-invalid-email.md","14 ASPNet Membership Create User And Invalid Email",{"type":7,"value":8,"toc":61},"minimark",[9,18,25,28,40,47,50,58],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"aspnet-membership-create-user-and-invalid-email","ASP.Net Membership, Create User and Invalid Email",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 10/3/2016.",[26,27],"br",{},[22,29,30,31,35,36,39],{},"I was testing ASP.Net Membership user registration logic in my server. It runs fine till it throws ",[32,33,34],"code",{},"The E-mail supplied is invalid"," error. Weird thing is I found out that all my data are correct through debugging and double checking my entry. Quick search says that ",[32,37,38],{},"requiresUniqueEmail"," attribute on Membership provider tag set to true is the problem. Ironically, I only have one email in the database.",[22,41,42,43,46],{},"Brushing my confusion aside, I remove the attribute, but it still doesn't work. And eventually found out that setting ",[32,44,45],{},"requiresUniqueEmail=\"false\""," fixed the whole thing.",[22,48,49],{},"Later on I also found out that by default, the attribute has value of true. That explains why removing the attribute doesn't work.",[22,51,52],{},[53,54,55],"a",{"href":55,"rel":56},"https://msdn.microsoft.com/en-us/library/system.web.security.membershipprovider.requiresuniqueemail(v=vs.110).aspx",[57],"nofollow",[22,59,60],{},"I have yet found out why it doesn't work when it has true value and no data in the database. Hopefully one day when I have time to dig deeper.",{"title":62,"searchDepth":63,"depth":63,"links":64},"",2,[],"2025-09-14T00:00:00.000Z","md",{},true,"/2025/09/14-asp.net-membership-create-user-and-invalid-email",null,{"title":5,"description":62},"2025/09/14 ASP.Net-membership-create-user-and-invalid-email","DFq2R7KmwM8h3MkVDDXHYud2Isf2soK-GkEJWqu5Ivw",1785167453163]