first-chance-exception

.NET - First chance exception listener for intensive debugging?

This is probably unrealistic, but would it be possible to enable a component to be notified of all first chance exceptions occuring in its process? We have some third-party (contracted by us) components which fail to do anything but eat excepitions and the politics of the business relationship make the whole ordeal a royal pain. We als...

First chance System.Configuration.ConfigurationErrorsException "This element is not currently associated with any context"

Dear ladies and sirs. Does anyone know what this particular exception mean and how to fix it? Note, that I am not asking for help on suppressing it in the Exceptions dialog. I want to understand the root cause of it and how to fix the cause itself, if at all possible. Thanks. P.S. The line that causes FCE is: using (ServiceHost hos...

vs.net first time exceptions filter

In visual studio you can activate break on first change exceptions. In my application I would like to ignore certain exceptions (validation and installation) and I have to disable those by hand. Is there a way to set up the first change exception window with a set of default exceptions to catch and/or ignore? ...

Display exception information and Debug.Print() messages in Immediate Window

A friend of mine claims that calls to Debug.Print() as well as first-chance exception notifications appear in the Immediate Window for him. I found this surprising; for me they only appear in the Output Window. MSDN claims (here) that you can implicitly enable them in the Immediate Window by explicitly disabling them in the Output Windo...

vb.net A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

I just installed Visual Basic 2010 Express. I created a simple console application: Module Module1 Sub Main() Dim i As Integer i = 0 End Sub End Module I'm getting the following error SIX times before I get to line "i = 0": A first chance exception of type 'System.Runtime.InteropServices.COMException' occur...

crashes not trapped with MS VS Debugger - how to catch?

I'm getting random crashes from my c# app (Windows 7/VS2008), and it doesn't give me a usual stack trace, but rather suggests to close/debug/find info windows 7 kind of dialog box. I'm running the app either from under VS2008 or stand alone - same thing. Clicking "Debug" suggests to debug with a new instance of the VS, which fails as "an...