attahameed / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Exception in thread is not captured #145

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add the sample page to a Web Application project that has elmah set-up.
2. Run the sample page (unhandled exception occurs in a background thread)
3. Go in the elmah.axd error listing page

Expected results:
4. A new error matching the background thread exception has been logged.

Actual results:
4. No new errors has been logged.

What version of the product are you using? On what operating system?
I am using elmah v1.1.11517.2009 on Windows XP SP3.

The project I extracted the sample page from is a Web Application project
built using .Net 3.5 in Visual Studio 2008 SP1.

The Web.config file is the default one created with a new project + the
required elmah configurations to support email and SQL Server logging (the
same project and same config file has been used to successfully log other
types of exceptions supported by elmah).

No filtering of exceptions is done.

Other information:
I have been able to capture this exception by creating an HTTP Module that
is hooked on the AppDomain.CurrentDomain.UnhandledException event. This
event is triggering when the unhandled exception occurs in the thread.

Maybe elmah could hook itself on Domain.UnhandledException event to capture
everything? Or, is there drawbacks/issues to using that handler?

Original issue reported on code.google.com by edgard.p...@gmail.com on 16 Dec 2009 at 9:14

Attachments:

GoogleCodeExporter commented 8 years ago
This issue has been migrated to:
https://github.com/elmah/Elmah/issues/145
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is 
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of 
any further development.

Original comment by azizatif on 25 Aug 2015 at 8:18