viktor-evdokimov / elmah

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

ELMAH Not Handling Errors on ASP.NET Async Page EndEventHandler Callbacks. #293

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sorry if this has been handled already, or if not ELMAH's but ASP.NET's problem 
(see Atif's response in this thread from 2006:  
http://groups.google.com/group/elmah/browse_thread/thread/100fd880973e59c8?pli=1
).  I can't seem to find any discussion on this subject other than the above 
thread, yet I'm not sure from thread discussion what to do to fix the problem.  
I've tried throwing an HttpException and an HttpUnhandledException, though I 
don't seem to be getting anywhere.  I would appreciate any updated knowledge on 
the subject or workarounds available.  Thanks!

Eric Zachman

What steps will reproduce the problem?

1. Async Page (@Page Async="true"...)
2. Call AddOnPreRenderCompleteAsync(BeginSaveTask, EndSaveTask);
3. In EndSaveTask, get "Fault Exception" from async web services call (some 
null ref exception on services side for example).

What is the expected output? What do you see instead?

I would expect to see ELMAH error page, however I see yellow ASP.NET 
"unhandled" error page instead.  When I use the synchronous version of the same 
method, I see the ELMAH error page as I'd expect.

Original issue reported on code.google.com by ezach...@edcheckup.com on 30 Apr 2012 at 8:46

GoogleCodeExporter commented 8 years ago
This issue has been migrated to:
https://github.com/elmah/Elmah/issues/293
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:23