C# Visual Studio 2010 Express:
When my application starts up, even before showing my GUI, I get following error in a dialog box:
Fatal Problem: Value cannot be null.
Parameter name: source
This seems to be related to some user settings in the application.
I changed a setting type from String in StringCollection, but I am not sure this is the root cause. The name “source” does not ring a bell either.
Problem is that I cannot break the application to debug this error.
When I click OK, the application starts up, but the settings are all empty for some reason.
Thanks for your help
Davy
The best way to solve this is to use the debugger to find out where the exception is acutally coming from. To do this try the following
Disable Just My Code
Turn on first chance excepions
Then hit F5 to start debugging your application. This should give you a very good idea where the error is occuring and why.