I\'m getting the following exception when I try to run up my Winforms app and haven\'t been able to find a solution to it:
System.ArgumentNullException was u
Try Build -> Clean Solution instead. I don't know why this isn't done automatically during a Build, but its no good complaining
try unchecking the Enable clickonce security settings
checkbox in the security tab of the application properties(Projects Tab -> "Project Name" Properties-> Security Tab
).
Just to give closure on this question the following resolved it:
Unchecked the "enable clickonce security settings" checkbox in the security tab of the application properties.
As suggested by Rene in the comments of my question.
I also had this problem in VS2010 VB.NET, Thanks Rene! Unchecking project_properties.security.enable click once removed my problem
How my symptoms manifested: I had a custom user control on a form, and was forced to remove any reference to it manually inside InitializeComponent() subroutine
reason: my Winform had corrupted just after I modified the New() subroutine of my custom user control, where I changed the New() to add arg's and I didn't create a 'default' Sub New() with no arg's, as required for winform page rendering)