On May 12, 4:52 pm, Atif Aziz <
aziza...@gmail.com> wrote:
> > I still need some clarity on whether i can delay the writing of the
> > exception being thrown until its bubbled up to the Global.asax
> > Application_Error method?
>
> From memory, I believe that Application_Error in Global.asax is called after
> the same event in any other HTTP module, including those of ELMAH. In
> effect, you can't delay things because by the time your Application_Error is
> called, ErrorLogModule form ELMAH will have logged the error. What you can
> do is play a lot hacks to get what you want but I don't know if it's worth
> the trouble. From the sound of it, it looks like you don't want ELMAH to log
> it automatically. In that case, I wouldn't register ErrorLogModule and
> simply log the error in Application_Error using ErrorLog.
>