ELMAH is used to register unhandled exceptions. If you can handle this exception, I would strongly recommend that you do so.
If you still want to log exceptions in ELMAH, you can do this:
try { ... } catch (Exception e) { Elmah.ErrorSignal.FromCurrentContext().Raise(e) }
source share