When I execute this line of code
Elmah.ErrorSignal.FromCurrentContext().Raise(context.Exception);
I get the following error
With the following stack trace...
at Elmah.Error..ctor(Exception e, HttpContext context)
at Elmah.ErrorMailModule.OnError(Exception e, HttpContext context)
at Elmah.ErrorMailModule.OnErrorSignaled(Object sender, ErrorSignalEventArgs args)
at Elmah.ErrorSignalEventHandler.Invoke(Object sender, ErrorSignalEventArgs args)
at Elmah.ErrorSignal.Raise(Exception e, HttpContext context)
at Elmah.ErrorSignal.Raise(Exception e)
at Ideal.API.Filters.UnhandledExceptionFilter.OnException(HttpActionExecutedContext context) in C:\Repositories\edgemvc-ideal\Ideal.API\Filters\HandleErrorActionFilter.cs:line 10
at System.Web.Http.Filters.ExceptionFilterAttribute.OnExceptionAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
I have tried several versions of the email
<elmah>
<errorMail
from="from"
to="to"
subject="subject"
async="true|false"
smtpPort="587|0"
smtpServer="smtpServer"
userName="userName"
password="password"
useSsl="true|false"/>
</elmah>