We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cannot open WinForms Designer after update to 20.4.0.43 I can no longer open the designer

I updated mt C# WinForms solution to 20.4.0.43. I updated the license key. The solution builds and runs without error. 

The Syncfusion Troubleshooter does not find any issues.

When I try to open the Winforms designer, I get the following errors:


  1. Object reference not set to instance of an object. The callstack is below.
  2. at Syncfusion.Windows.Forms.Tools.Design.RibbonControlAdvDesigner.UpdateNestedContainer()
    at Syncfusion.Windows.Forms.Tools.Design.RibbonControlAdvDesigner.Initialize(IComponent component)
    at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
    at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
    at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
    at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
    at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
    at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
    at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)
  3. The variable ribbon was either undeclared or was never assigned.
  4. this.Controls.Add(this.ribbon);



1 Reply

HN Harinath Navaneethakrishnan Syncfusion Team January 12, 2023 03:59 PM UTC

Hi Doug,


We are not able to reproduce the issue from our end. Please refer to the sample for your reference. Could you please share the below-mentioned details?


  1. Visual Studio version you are using
  2. Controls you are using inside the Ribbon
  3. Screenshot of the form at runtime
  4. If possible please share the demo


Regards,

Harinath N


Attachment: RibbonControlWF_f064d22c.zip

Loader.
Live Chat Icon For mobile
Up arrow icon