473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

UnhandledException event

Hi misters,

is it possible use AppDomain.Currentdomain. UnhandledException event en
ASP.NET 2.0 ??

I have this code:

protected override void OnInit(EventArgs e)
{
base.OnInit(e);

PantallaControlIULogging.TrazarDebug("Principal. OnInit.");

PantallaControlIULogging.TrazarWarning("Principal.
CurrentDomain_UnhandledException. ");
AppDomain.CurrentDomain.UnhandledException -= new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
}

and

protected void Page_Load(object sender, EventArgs e)
{
PantallaControlIULogging.TrazarWarning("Principal.
CurrentDomain_UnhandledException. ");
AppDomain.CurrentDomain.UnhandledException -= new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
....
I don't get fire that event when throw an error

protected void b2click(object sender, EventArgs e)
{
// Forzar error
throw new
Excepciones.BloqueoTareaExcepcion("ERROR BloqueoTareaExcepcion!!!");
By other reasons, I cannot access to global.asax and I cannot use
HttpApplication_Error event.

Any help will be appreciated, and I'll be very grateful. Thanks in advance.
Greetings, regards.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Nov 13 '07 #1
1 1636
This article may be helpful:

http://www.eggheadcafe.com/articles/20060305.asp

Also, if you search the site with "unhandled exception" you will find more.
-- Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Alhambra Eidos Kiquenet" wrote:
Hi misters,

is it possible use AppDomain.Currentdomain. UnhandledException event en
ASP.NET 2.0 ??

I have this code:

protected override void OnInit(EventArgs e)
{
base.OnInit(e);

PantallaControlIULogging.TrazarDebug("Principal. OnInit.");

PantallaControlIULogging.TrazarWarning("Principal.
CurrentDomain_UnhandledException. ");
AppDomain.CurrentDomain.UnhandledException -= new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
}

and

protected void Page_Load(object sender, EventArgs e)
{
PantallaControlIULogging.TrazarWarning("Principal.
CurrentDomain_UnhandledException. ");
AppDomain.CurrentDomain.UnhandledException -= new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
...
I don't get fire that event when throw an error

protected void b2click(object sender, EventArgs e)
{
// Forzar error
throw new
Excepciones.BloqueoTareaExcepcion("ERROR BloqueoTareaExcepcion!!!");
By other reasons, I cannot access to global.asax and I cannot use
HttpApplication_Error event.

Any help will be appreciated, and I'll be very grateful. Thanks in advance.
Greetings, regards.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Nov 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marcio Izepe | last post by:
I am with a problem that I do not obtain to understand. I put a method in the UnhandledException event of AppDomain to capture and log exceptions, however it does not pass for it when I am working...
7
by: Mike Strieder | last post by:
i want to catch all execeptions with my own handler, but the problem is, that the JIT-Debugger always start! i put also the <system.windows.forms jitDebugging="false" /> in the machine.config ...
4
by: Thom Little | last post by:
I have a simple C# Winforms application that has an UnhandledException handler that writes to the log. This works fine if I throw a new exception (like"bogus") but it does not gain control on a...
5
by: John Richardson | last post by:
Quick question about the UnhandledException event and associated Handler. I just implemented this handler for the first time, and am surprised that it this event is being raised for an exception...
2
by: guy | last post by:
In my application I have an event handler to catch unhandled exceptions, as per the MSDN documentation, however when an unhandled exception is thrown I get the Dialogue first, then the event...
4
by: Groundskeeper | last post by:
I can't seem to get a custom UnhandledException handler working for a Windows Service I'm writing in VB.NET. I've read the MSDN and tried various different placements of the AddHandler call, to no...
2
by: Chris Dunaway | last post by:
I am attempting to use the AppDomain.UnhandledException event in a Windows Forms app and also in a Windows Service. But the event doesn't seem to be called. In a Windows Forms app, the event IS...
7
by: Spam Catcher | last post by:
Hi all, When I'm debugging my application in VS.NET 2005, the debugger intercepts all unhandled exceptions and does not break into ApplicationEvents.UnhandledException. How do I debug...
2
by: james | last post by:
Hi all, I have a console app that uses AppDomain.CurrentDomain.UnhandledException. However it only seems to catch exceptions in the current thread. Exceptions in other threads (like from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.