Using: Visual Studio 2012, .NET Framework 4, Windows 7 x64
Sometimes, upon starting my application in debug mode, I see the following line in the Output window:
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in Microsoft.VisualStudio.HostingProcess.Utilities.dll
This happens approximately once in every 10 startups and appears to be random (no code is changed, I can just Start, Stop, Start, Stop, etc. until I see the error in Output).
I would like to know what is causing this first-chance exception. I have the option "Tools->Options->Debugging->General->Enable Just My Code" disabled and I have enabled the "Debug->Exceptions...->Common Language Runtime Exceptions->System.Runtime.InteropServices->System.Runtime.InteropServices.COMException" option (see screenshot below) in order to break upon getting the exception, but Visual Studio does not break so I don't know where the issue is.
I've tried placing random breakpoints in my code but it seems that whenever I actually have a breakpoint set then the exception doesn't occur.