Server Error in '/' Application.

No connection could be made because the target machine actively refused it 127.0.0.1:25

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.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25

Source Error:


Line 29: 
Line 30:         // Send mail
Line 31:         mailClient.Send(mailMessage);
Line 32:     }
Line 33: 

Source File: g:\pleskvhosts\panamazero.com\httpdocs\App_Code\Utilities.cs    Line: 31

Stack Trace:


[SocketException (0x274d): No connection could be made because the target machine actively refused it 127.0.0.1:25]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239
   System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224

[WebException: Unable to connect to the remote server]
   System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +5547127
   System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +202
   System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
   System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +332
   System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +160
   System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +159
   System.Net.Mail.SmtpClient.GetConnection() +35
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1213

[SmtpException: Failure sending mail.]
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1531
   Utilities.SendMail(String from, String to, String subject, String body) in g:\pleskvhosts\panamazero.com\httpdocs\App_Code\Utilities.cs:31
   Utilities.SendErrorLogEmail(Exception ex) in g:\pleskvhosts\panamazero.com\httpdocs\App_Code\Utilities.cs:72
   GenericDataAccess.ExecuteSelectCommand(DbCommand command) in g:\pleskvhosts\panamazero.com\httpdocs\App_Code\GenericDataAccess.cs:39
   CatalogAccess.GetCategoryDetails(String categoryId) in g:\pleskvhosts\panamazero.com\httpdocs\App_Code\CatalogAccess.cs:242
   Catalog.PopulateControls() in g:\pleskvhosts\panamazero.com\httpdocs\Catalog.aspx.cs:33
   Catalog.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\panamazero.com\httpdocs\Catalog.aspx.cs:19
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062