Using Visual Studio 2012 Express, how can I check the InnerException
when a System.TypeInitializationException
is raised from an external code frame. The debugger breaks due to the exception, however not at any code line. It gives the following message:
No Source Available
The call stack contains only external code.
Thi thread is stopped with only external code frames on the call stack. External code frames are typically from framework code but can also include other optimized modules which are loaded in the target process.
And then gives the call stack, See below:
I would set a try-catch block, but I don't know where in the code this happens. How can I inspect the InnerException
at this point? Is there another way to go about finding what's up?