بســم الله الـرحمــن الرحيــم
السلام عليكــم ورحمـة الله وبركاتــه
Server Error in '/' Application.
The parameter 'address' cannot be an empty string.
Parameter name: 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.ArgumentException: The parameter 'address' cannot be an empty string.
Parameter name: address
Source Error:
Line 51: for (long i = 0; i < To.Length; i++)Line 52: {Line 53: m.To.Add(new MailAddress(To.ToString()));Line 54: }Line 55: m.Subject = Subject;
Source File: g:\domains\atfalarab.net\wwwroot\App_Code\general.cs Line: 53
Stack Trace:
[ArgumentException: The parameter 'address' cannot be an empty string.Parameter name: address] System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding) +939586 System.Net.Mail.MailAddress..ctor(String address) +8 general.SendMail(String From, String[] To, String Subject, String Body) in g:\domains\atfalarab.net\wwwroot\App_Code\general.cs:53 _Default.Button2_Click(Object sender, EventArgs e) in g:\domains\atfalarab.net\wwwroot\Default.aspx.cs:49 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.RaisePostBa
ckEvent(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
ما هذه المشكلة