New Blog Problem

Topics: ASP.NET 2.0
Nov 3, 2008 at 12:26 PM
 

Server Error in '/' 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:

Line 47: 			{
Line 48: 				MailMessage mail = CreateEmail(post);
Line 49: mail.To.Add(node.InnerText); Line 50: 				Utils.SendMailMessageAsync(mail);
Line 51: 			}

Source File: d:\vhosts\kayserispor.org\httpdocs\widgets\Newsletter\widget.ascx.cs    Line: 49

Stack Trace:

[FormatException: The specified string is not in the form required for an e-mail address.]
   System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName) +1328
   System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset) +45
   System.Net.Mail.MailAddressCollection.ParseValue(String addresses) +37
   System.Net.Mail.MailAddressCollection.Add(String addresses) +56
   widgets_Newsletter_widget.Post_Saved(Object sender, SavedEventArgs e) in d:\vhosts\kayserispor.org\httpdocs\widgets\Newsletter\widget.ascx.cs:49
   System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0
   BlogEngine.Core.BusinessBase`2.OnSaved(BusinessBase`2 businessObject, SaveAction action) in C:\Users\A7P\Desktop\BlogEngine.NET 1.4.5 (source)\BlogEngine.Core\BusinessBase.cs:447
   BlogEngine.Core.BusinessBase`2.Update() in C:\Users\A7P\Desktop\BlogEngine.NET 1.4.5 (source)\BlogEngine.Core\BusinessBase.cs:343
   BlogEngine.Core.BusinessBase`2.Save() in C:\Users\A7P\Desktop\BlogEngine.NET 1.4.5 (source)\BlogEngine.Core\BusinessBase.cs:298
   admin_entry.btnSave_Click(Object sender, EventArgs e) in d:\vhosts\kayserispor.org\httpdocs\admin\Pages\Add_entry.aspx.cs:237
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

What is this proplem?
<!-- [FormatException]: The specified string is not in the form required for an e-mail address. at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName) at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset) at System.Net.Mail.MailAddressCollection.ParseValue(String addresses) at System.Net.Mail.MailAddressCollection.Add(String addresses) at widgets_Newsletter_widget.Post_Saved(Object sender, SavedEventArgs e) in d:\vhosts\kayserispor.org\httpdocs\widgets\Newsletter\widget.ascx.cs:line 49 at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at BlogEngine.Core.BusinessBase`2.OnSaved(BusinessBase`2 businessObject, SaveAction action) in C:\Users\A7P\Desktop\BlogEngine.NET 1.4.5 (source)\BlogEngine.Core\BusinessBase.cs:line 447 at BlogEngine.Core.BusinessBase`2.Update() in C:\Users\A7P\Desktop\BlogEngine.NET 1.4.5 (source)\BlogEngine.Core\BusinessBase.cs:line 343 at BlogEngine.Core.BusinessBase`2.Save() in C:\Users\A7P\Desktop\BlogEngine.NET 1.4.5 (source)\BlogEngine.Core\BusinessBase.cs:line 298 at admin_entry.btnSave_Click(Object sender, EventArgs e) in d:\vhosts\kayserispor.org\httpdocs\admin\Pages\Add_entry.aspx.cs:line 237 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.admin_pages_add_entry_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ae0b6aad\4ea99de2\App_Web__5fnv2no.17.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->