473,503 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership.CreateUser: The E-mail supplied is invalid.

Hi Expert,

Dim u As MembershipUser = Membership.CreateUser("jfewfewa801",
"r09gtrez30@")

Above statement return "The E-mail supplied is invalid." until I set
requiresUniqueEmail="false" in web.config. Is there a way to create
user with empty email address while required non-empty email to be
unique?

I can insert dummy unique to work around this but it's so ugly, any
beautiful solution?

thanks a ton in advance.

Alan

Oct 2 '07 #1
1 5646

There may be a work around, but I get around these type isses like this.

string fakeEmail = System.Guid.NewGuid().ToString("N") +
"@doesnotexist.com";

something like that.


"Alan" <al****@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
Hi Expert,

Dim u As MembershipUser = Membership.CreateUser("jfewfewa801",
"r09gtrez30@")

Above statement return "The E-mail supplied is invalid." until I set
requiresUniqueEmail="false" in web.config. Is there a way to create
user with empty email address while required non-empty email to be
unique?

I can insert dummy unique to work around this but it's so ugly, any
beautiful solution?

thanks a ton in advance.

Alan

Oct 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1137
by: Joe Gilkey | last post by:
I am trying to create an application using ASP.NET 2.0 which takes advantage of the new Membership features (I am using Visual Web Developer Beta 2). I created a default database on SQL Server...
0
2050
by: Portman | last post by:
I've used the Membership classes in an ASP.NET 2.0 application to create an application that interfaces with an older SQL Server 2000 database. Everything is working except the following... Like...
3
4902
by: Adam J Knight | last post by:
Hi all, I am in the process of creating a custom membership provider (ASP.NET 2.0): Currently I am inheriting from MembershipProvider which isn't a problem. However, the...
3
2011
by: VB Programmer | last post by:
I am getting this error: error BC30456: 'CreateUser' is not a member of 'Membership'. What does that mean? Here's my code. It seems correct (no squigglies, etc...) ' store it in db Dim...
3
3264
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
1
2101
by: John | last post by:
Hi I am using the membership createuser method but need to find the error when one arise. I am using the below code; Public Function CreateUser(ByVal Username As String, ByVal Password As...
3
1799
by: John | last post by:
Hi I have a web service asmx file in a sub folders of site app root folder. With in the web service I am trying to cerate the user as below; <WebMethod()_ Public Function CreateUser(ByVal...
4
3253
by: AC | last post by:
Hi there. My asp.net 2.0 development website uses roles to control access to sections of my site, configured using the asp.net configuration tool, which is great. Except that isn't available once...
1
3323
by: mazdotnet | last post by:
Hi, I like to grab the user id of the currently added user. However, I can't find a property that would do it. MembershipUser newUser = Membership.CreateUser(tbxUsername.Text,...
6
2915
by: Jonathan Wood | last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm thinking I should implement my own membership provider class. Looking over the methods I must implement, a number of...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.