multi thread asp.net apps is not usually a good idea as you can run into
scalling problems. if you start a thread, then its outside the asp.net
processing (as page processing is a asp.net thread calling a page method,
which uses a try/catch to implement Application_Error).
you background thread can write to the event log itself (it shoudl catch its
own errors). it could call back to the main thread, though you have to be
careful, as the main thread may switch during page processing. asp.net is
free to switch threads before calling a page methods like onload, onint, or
firing page events.
-- bruce (sqlwork.com)
"lucy" <yo****@profitecinc.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Hi,
I'm working on a multi-threading web application. I'm using
Application_Error event to write exception detail to windows event log
to help debug. It seems exception happened in the second thread doesn't
fire this event. I tried to use trace.write() method. It doesn't seem
work either. I'm out of idea.
Any help is highly appreciated.
Lucy