I was debugging a piece of managed code that communicates with a COM object (an old native piece). I was using Visual Studio 2008.
Things moving along nicely until an exception showed up when initializing the COM object – System.AccessViolationException.
It took me quite a while to find out that the exception was solely a result of a mis-configuration. I should not have checked “Enable RPC debugging” for native debugging. Cleared the checkbox, it worked like a charm.

