473,471 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Capturing Unhandled exceptions

Just read a posting on "Unhandled Exceptions in services" and wanted to ask;

If you are logging exceptions of this nature do you log to text, XML or
database?
Also if you don't mind saying why you selected it.

Thanks!!!
Jun 27 '07 #1
3 1143
Lit
Kevin,

I log to: Event Log , XML File and Database. unlikely for all to fails all
at once.

Lit

"Kevin S Gallagher" <ke***************@state.or.uswrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Just read a posting on "Unhandled Exceptions in services" and wanted to
ask;

If you are logging exceptions of this nature do you log to text, XML or
database?
Also if you don't mind saying why you selected it.

Thanks!!!

Jun 27 '07 #2
Thanks for your thoughts.

"Lit" <sq**********@hotmail.comwrote in message
news:e4*************@TK2MSFTNGP06.phx.gbl...
Kevin,

I log to: Event Log , XML File and Database. unlikely for all to fails
all at once.

Lit

"Kevin S Gallagher" <ke***************@state.or.uswrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Just read a posting on "Unhandled Exceptions in services" and wanted to
ask;

If you are logging exceptions of this nature do you log to text, XML or
database?
Also if you don't mind saying why you selected it.

Thanks!!!


Jun 27 '07 #3

I do the same.

the local file is last.

if the eventlog fails, or the db call fails, i log the original error in the
xml file AND the logging exception.

but the db is never/seldom down.


"Lit" <sq**********@hotmail.comwrote in message
news:e4*************@TK2MSFTNGP06.phx.gbl...
Kevin,

I log to: Event Log , XML File and Database. unlikely for all to fails
all
at once.

Lit

"Kevin S Gallagher" <ke***************@state.or.uswrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Just read a posting on "Unhandled Exceptions in services" and wanted to
ask;

If you are logging exceptions of this nature do you log to text, XML or
database?
Also if you don't mind saying why you selected it.

Thanks!!!


Jun 27 '07 #4

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

Similar topics

4
by: cs | last post by:
How can I capture the events leading to my windows application crashing? would a big try catch around the Application.Run() do the job? in my head that launches a thread and if that thread crashes...
4
by: Frank | last post by:
Hi, I made a handler for unhandled errors. But before that is executed, VB.NET gives me the standard error window. In VB6 there was a setting (errortrapping) about handling errors in the design...
5
by: Lucvdv | last post by:
Can someone explain why this code pops up a messagebox saying the ThreadAbortException wasn't handled? The first exception is reported only in the debug pane, as expected. The second (caused by...
5
by: Samuel R. Neff | last post by:
When you have an unhandled exception in vb.net how do you view the exception information in the debugger? In C# the debugger creates a local variable that points to the exception and you can...
5
by: Sam Loveridge | last post by:
Hi All. I'm hoping someone can point me in the direction of a solution to unhandled exceptions in MDI child forms causing the application to crash. I've found various articles describing a...
0
by: Colmeister | last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have attempted to incorporate the features he talks...
2
by: Bob | last post by:
I MUST be able to trap unhandled exceptions, bring the thread to a routine that then closes the thread on which the execption occurred without closing or affecting the other threads. Think of an...
3
by: Andreas van de Sand | last post by:
Hi everyone, I've got an application which uses a custom exception handler and to avoid unhandled exceptions I've got a try{}catch (Exception){} block around the main Application.Run(...). ...
20
by: joseph_gallagher | last post by:
Hi, I've recently ported a .Net 1.1 application to .Net 2.0 and the one new feature that is getting on my nerves is that when there is an unhandled exception the application completely crashes,...
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
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.