Get an error System.ArgumentNullException was unhandled, Value Cannot be null. Parameter name: activationContext

前端 未结 4 353
慢半拍i
慢半拍i 2021-01-13 08:48

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         


        
相关标签:
4条回答
  • 2021-01-13 08:54

    Try Build -> Clean Solution instead. I don't know why this isn't done automatically during a Build, but its no good complaining

    0 讨论(0)
  • 2021-01-13 08:57

    try unchecking the Enable clickonce security settings checkbox in the security tab of the application properties(Projects Tab -> "Project Name" Properties-> Security Tab).

    0 讨论(0)
  • 2021-01-13 09:03

    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.

    0 讨论(0)
  • 2021-01-13 09:13

    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)

    0 讨论(0)
提交回复
热议问题