Server Error in '/' Application.

The SMTP server requires a secure connection or the client was not authenticated. The server response was: Authentication required

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.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: Authentication required

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:


[SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: Authentication required]
   System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) +2436373
   System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) +52
   System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) +117
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2619
   DW.Headrush.Services.Helpers.EmailHelper.SendEmail(String fromEmail, String subject, String toEmail, String body, Boolean isHtml) in E:\Websites\HeadRush\v2.0\DW.Headrush.Services\Helpers\EmailHelper.cs:190

[Exception: There is an error in EmailHelper.SendEmail]
   DW.Headrush.Services.Helpers.EmailHelper.SendEmail(String fromEmail, String subject, String toEmail, String body, Boolean isHtml) in E:\Websites\HeadRush\v2.0\DW.Headrush.Services\Helpers\EmailHelper.cs:195
   DW.Headrush.Www.Infrastructure.ErrorLogging.ErrorLoggingService.LogToEmail(Exception ex, String url, String formCollection) in E:\Websites\HeadRush\v2.0\DW.Headrush.Www\Infrastructure\ErrorLogging\ErrorLoggingService.cs:68
   DW.Headrush.Www.Infrastructure.ErrorLogging.ErrorLoggingService.HandleError(Exception ex, String url, String formCollection) in E:\Websites\HeadRush\v2.0\DW.Headrush.Www\Infrastructure\ErrorLogging\ErrorLoggingService.cs:16
   System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) +174
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +165
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +27
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +41
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0