473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CreateUserWizard FormatException for e-mail address

Avi
A CreateUserWizard contorl receives new user details, adds the user to
the database, tries to send a confirmation mail message and stops with
a "System.FormatException: The specified string is not in the form
required for an e-mail address."

Any ideas?

---------------------------------------------------------
The CreateUserWizard contorl's code:

<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
ContinueDestinationPageUrl="~/Default.aspx">
<WizardSteps>
<asp:CreateUserWizardStep runat="server">
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep runat="server">
</asp:CompleteWizardStep>
</WizardSteps>
<MailDefinition From="ProjectTemplate" Subject="Registration to
ProjectTemplate"
BodyFileName="~/UsersMngmnt/Registration.txt">
</MailDefinition>
</asp:CreateUserWizard>

---------------------------------------------------------
The mail configuration in the parent directory's Config.Web:

<system.net>
<mailSettings>
<smtp from="ProjectTemplate">
<network host="<Outgoing Mail Server>" password="<Password>"
userName="<User Name>" />
</smtp>
</mailSettings>
</system.net>

The network host, password and userName values were taken from
Outlook's E-mail Accounts, so I'm quite sure they're correct.

---------------------------------------------------------
The activity that (consistently) causes the exception:

Click on "Register for the first time".
Receive "Sign Up for Your New Accoutn" step.
Enter User Name "g", Password & Confirm Password "1234567#", E-Mail
"gm***@bmntech.com", Security Question "What's your name?" and Security
Answer "g".

---------------------------------------------------------
The exception:

Server Error in '/ProjectTemplate' Application.
--------------------------------------------------------------------------------

The specified string is not in the form required for an e-mail address.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.FormatException: The specified string is not
in the form required for an e-mail address.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: The specified string is not in the form required for
an e-mail address.]
System.Net.Mime.MailBnfHelper.ReadMailAddress(Stri ng data, Int32&
offset, String& displayName) +1311
System.Net.Mail.MailAddress.ParseValue(String address) +417
System.Net.Mail.MailAddress..ctor(String address, String
displayName, Encoding displayNameEncoding) +264
System.Net.Mail.MailAddress..ctor(String address) +33
System.Net.Mail.Message..ctor(String from, String to) +447
System.Net.Mail.MailMessage..ctor(String from, String to) +458
System.Web.UI.WebControls.MailDefinition.CreateMai lMessage(String
recipients, IDictionary replacements, String body, Control owner) +1588
System.Web.UI.WebControls.MailDefinition.CreateMai lMessage(String
recipients, IDictionary replacements, Control owner) +310
System.Web.UI.WebControls.LoginUtil.CreateMailMess age(String email,
String userName, String password, MailDefinition mailDefinition, String
defaultBody, Control owner) +215
System.Web.UI.WebControls.LoginUtil.SendPasswordMa il(String email,
String userName, String password, MailDefinition mailDefinition, String
defaultSubject, String defaultBody, OnSendingMailDelegate
onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate,
Control owner) +482
System.Web.UI.WebControls.CreateUserWizard.Attempt CreateUser() +641

System.Web.UI.WebControls.CreateUserWizard.OnNextB uttonClick(WizardNavigationEventArgs
e) +200
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Obj ect source,
EventArgs e) +650
System.Web.UI.WebControls.CreateUserWizard.OnBubbl eEvent(Object
source, EventArgs e) +158
System.Web.UI.WebControls.WizardChildTable.OnBubbl eEvent(Object
source, EventArgs args) +39
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
args) +56
System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +107
System.Web.UI.WebControls.Button.RaisePostBackEven t(String
eventArgument) +178

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+72
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+3838

Aug 5 '06 #1
0 2002

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

Similar topics

1
by: Raventhorn | last post by:
I am trying, as I can see many are, to avoid the CreateUserWizard's CreateUser step from creating the user until I am ready to do it. I have a rather complex registration because I have various...
0
by: Babbage | last post by:
a login page login.aspx from there you can go to createaccount.aspx Ive got a createuserwizard on that create account page. It includes the following properties continuedestinationpageurl...
3
by: Ben R. | last post by:
Seems like CreateUserWizard flat out ignores StartNavigationTemplate. Not sure why the designer bothers to offer for you to edit it, but even when you specifiy this, it doesn't seem to be used. Is...
2
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As...
2
by: guoqi zheng | last post by:
Dear sir, I am using the createUserWizard of ASP.NET 2.0. I am trying to add two extra fields to it. FirstName and LastName. However I did not find out how can get the value out of this two...
0
by: Nehpets | last post by:
I'm trying to setup a web site that uses active directory for user authentication under asp.net 2.0. For testing, I have separately installed two virtual servers. The first is a domain...
1
by: staeri | last post by:
Hello! It looks like the newly registered user is logged in after the CompleteWizardStep in CreateUserWizard is finished. I would like to logout the user when that step appears. How can I do...
2
by: hardieca | last post by:
Hi! I have a CreateUserWizard control with the usual suspects of validators. As you're probably aware, each validator is associated with one of CreateUserWizard's child controls. When a user...
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the CreateUserWizard step 2 alongwith Create User ...
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the second step of CreateUserWizard control...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.