I am in OnApplicationStarted wiring up examine indexingerror event so I have code like
private void OnIndexingError(object sender, IndexingErrorEventArgs indexingErrorEventArgs)
{
//Was a problem indexing node XX
var ex = new Exception("Examine Index Error from node:" + indexingErrorEventArgs.NodeId, indexingErrorEventArgs.InnerException);
//Push this exception upto ELMAH logs
Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
}
My question is when i do the elmah will i get another error because i wont have httpcontext?
Examine IndexingError with Elmah
I am in OnApplicationStarted wiring up examine indexingerror event so I have code like
My question is when i do the elmah will i get another error because i wont have httpcontext?
Regards
Ismail
When logging errors to ELMAH ouside a HTTP context, you should use the Log method instead:
Cheers Elmah now this is awesome customer service.
is working on a reply...