You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open existing Desktop control or Add New Desktop control cause Argument Null Exception. #690
As title, I try to add a Custom Desktop item to a C# project:
Right-click an project, select "Add..." and "New Item...". And then select "Visual C# Items --> Wisej --> Custom Desktop" from the "Add New Item" pop-up screen, Visual Studio will pop up an Exception when you click "Add..." button, which say:
ArgumentNullException: Value cannot be null.
Parameter name: key
I then click the OK button on this dialog box to close it and the Custom Desktop can actually added to the project (Refer to the attached screen capture for details).
I don't know if there is any side effect with such exception.
I am sorry that I just discover that the Exception is not just caused by "Add New Item".
As I upgraded the Wisej to the latest version 1.3.40.0 a few hours ago, I find that not only "Add New Item" but all existing Desktop controls will pop-up such ArgmentNullException when they are opened in the Designer.
Compile it and run it does not have problem. So, there must be something wrong with the Designer of the Desktop control.
As such, I change the subject of this thread accordingly.
Activity
itg-assistant commentedon Jun 12, 2026
Felix CHAN answered 2017-03-11 06:20:01 UTC
Hi,
I am sorry that I just discover that the Exception is not just caused by "Add New Item".
As I upgraded the Wisej to the latest version 1.3.40.0 a few hours ago, I find that not only "Add New Item" but all existing Desktop controls will pop-up such ArgmentNullException when they are opened in the Designer.
Compile it and run it does not have problem. So, there must be something wrong with the Designer of the Desktop control.
As such, I change the subject of this thread accordingly.
Thanks and regards,
Felix CHAN
itg-assistant commentedon Jun 12, 2026
Felix CHAN answered 2017-03-11 07:32:34 UTC
Hi,
This is a duplicate question. I just notice that the same problem is already post.
Regards,
Felix CHAN