To build upon @Wes answer, you can make the error message clearer by telling Visual Studio to automatically break at any exception:
- Go to
Debug
>Windows
>Exception Settings
to open the Exception Settings window - Select the checkbox for the base exception
System.Exception
- Start debugging again.
#完#