I have visual studio 2015. Almost every exception thrown by external APIs cause the following black screen with the title "Source Not Available" with the TargetInvocationException without any further information.
Does anybody know how can I get some details about the original exception?
The exception dialog should have a
View details
link (I'm not sure why it doesn't on your screenshot):TargetInvocationException
usually has theInnerException
property set to the actual thrown exception.If it doesn't show on the first "black screen" as you call it, try debugging (F5) again, you should see the full exception dialog