Receiving error: "System.ComponentModel.ISupportInitialize is not defined"

Posted by: andrew.yao on 10 March 2023, 10:28 am EST

    • Post Options:
    • Link

    Posted 10 March 2023, 10:28 am EST

    Hi,

    I’ve just recently upgraded an older version of ComponentOne to the most recent 2022v3. In trying to build and compile the project, I get the error in the title seemingly for C1FlexGrid objects only, and I was kindly wondering if there was a solution to this.

    The project is in VB.net and was updated from around 2011v2 or older. Any help would be greatly appreciated. Thank you and have a wonderful weekend!

  • Posted 12 March 2023, 8:28 pm EST

    Hi,

    what .net framework does your project use? And which framework version of C1FlexGrid did you choose?

    Best regards

    Wolfgang

  • Posted 13 March 2023, 2:31 am EST

    Hi,

    It targeted .NET Framework 3.5 previously and was changed to 4.8. It’s currently using C1.Win.C1FlexGrid.4.8 (4.8.20223.584)

  • Posted 13 March 2023, 9:38 pm EST

    Hi,

    Apologies for the delay in response. In the older versions, the C1FlexGrid control worked with only the C1.Win.C1FlexGrid.dll assembly referenced. But in the latest version, it also requires a reference to the C1.Win.dll assembly in the project. Therefore, please make sure to add a reference to this assembly from the location C:\Program Files (x86)\ComponentOne\WinForms Edition\bin\v4.8 in your system

    Also, the System.ComponentModel.ISupportInitialize is defined in the System assembly, and therefore, make sure that your project contains a reference to this assembly as well.

    If the issue persists, please create a sample project and drag-drop the C1FlexGrid control to see if you still face the issue. If yes, please share the sample project. If not, please share a stripped-down version of your project, so we can investigate further and assist you better.

    Best Regards,

    Kartik

  • Posted 14 March 2023, 7:56 am EST - Updated 14 March 2023, 7:56 am EST

    Adding C1.Win.4.8.dll as a reference and rebuilding the project solved the errors. Thank you very much Kartik!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels