When I want to open a c # form design, I get an error, but I couldn't fix it.

konum: FastReport.VSDesign.DesignerControlLayoutDesigner.Initialize(IComponent component)
konum: System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
konum: System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
konum: System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
konum: System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
konum: System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
konum: System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
konum: System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
konum: System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
konum: System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
konum: System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
konum: System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
konum: System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

Comments

  • Hello!

    Close all Form Designer tabs and close Visual Studio.

    Delete the bin and obj folders in the project (and clear the Form Designer cache at %LocalAppData%\Microsoft\VisualStudio\...\ProjectAssemblies).

    Check the .csproj file and the References to ensure that FastReport.dll, FastReport.Bars.dll, and FastReport.VSDesign.dll are all exactly the same version (with no older versions in the GAC).

    Open VS, select Clean -> Rebuild Solution, reset the components in the Toolbox if necessary (Reset Toolbox), and then open the form.

This discussion has been closed.