C1Excel error after upgrading from version 2024v1(657) to 2024v2(688)

Posted by: hrvoje.zirdum on 5 December 2024, 9:07 am EST

    • Post Options:
    • Link

    Posted 5 December 2024, 9:07 am EST - Updated 5 December 2024, 9:15 am EST

    Hi,

    In existing .Net 4.8 winforms application I’m getting C1Excel error after upgrading from version 2024v1(657) to 2024v2(688).

    In Properties–>Licenses.licx file I get “Unable to resolve type ‘C1.C1Excel.C1XLBook, C1.C1Excel.4.8’”

    In class where I have "using C1.C1Excel; " I’m getting “The type or namespace name ‘C1Excel’ does not exist in the namespace ‘C1’ (are you missing an assembly reference?)”

    Can you help me?

    Regards,

    Hrvoje

  • Posted 6 December 2024, 8:20 am EST

    Hi,

    We could see the behavior you mentioned. We are discussing it with the development team to get their insights on this and will update you as soon as possible.

    [Internal Tracking ID: C1WIN-33425]

    Kind Regards,

    Kartik

  • Posted 9 December 2024, 4:41 am EST

    Hi,

    I observed the same, and it seems “C1.C1Excel” was merged with the .NET6 package “C1.Excel”, so that this package now contains both versions.

    See https://www.nuget.org/packages/C1.Excel (contains a new version) and https://www.nuget.org/packages/C1.C1Excel (no new version).

    So, you would have to replace “C1.C1Excel” by “C1.Excel” in the “using” statements and in “license.licx”.

    To prove this: the .NET 4.8 package “C1.Win.C1FlexGrid.ImportExport” now has a dependency “C1.Excel”, while it was “C1.C1Excel” before.

    Hope this helps

    Wolfgang

  • Posted 10 December 2024, 9:18 am EST - Updated 10 December 2024, 9:19 am EST

    Hi!

    Thnaks for the suggestion. I tried, but it doesn’t work. The same error shows up. (I use folder references, not nuget.)

    Regards,

    Hrvoje

  • Posted 10 December 2024, 9:21 am EST

    Could you post a screenshot of your folder references? Did you change them to point to “C1.Excel.dll”?

    Best regards

    Wolfgang

  • Posted 10 December 2024, 9:25 am EST

    Hi,

    The older C1.C1Excel library has been replaced by the C1.Excel standard library. Therefore, you will need to use the C1.Excel DLL for the latest version.

    As Wolfgang mentioned, you must replace the C1.C1Excel namespace with C1.Excel and update the license file accordingly. Since this is a breaking change that may impact customer projects, our developers are considering including C1.C1Excel as a legacy component. This is currently under discussion.

    We will keep you updated as soon as we have more information.

    PS: Thanks a lot for the assistance, Wolfgang!

    Kind regards,

    Aastha

  • Posted 10 December 2024, 11:04 am EST

    I reinstalled the new version and found C1.Excel.dll and did what you suggested. Everything works as expected now.

    Last time, when I was doing upgrade, I didn’t see C1.Excel.dll in installation folder. It is there now. Maybe I overlooked it the first time.

    Thank You all.

    Regards,

    Hrvoje

  • Posted 11 December 2024, 1:39 am EST

    Hi Hrvoje,

    We are glad to hear that the issue has been resolved on your end.

    Kind Regards,

    Aastha

Need extra support?

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

Learn More

Forum Channels