Urgent License problems

Posted by: fd_peter on 10 September 2017, 3:26 am EST

    • Post Options:
    • Link

    Posted 10 September 2017, 3:26 am EST

    We have some old applications that have their own copy of old C1 Dlls but after installing a new version of c1 For winforms i cant compile the old projects any more…







    I get errors and i have no idea how to fix them i event tryed to uninstall everything that has to do with c1 and installing the old version again but that didn't help the errors i get are







    Exception occurred creating type 'C1.Win.C1Command.C1CommandHolder, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8' System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.







    Exception occurred creating type 'C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2, Version=2.6.20073.357, Culture=neutral, PublicKeyToken=79882d576c6336da' System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.







    Exception occurred creating type 'C1.Win.C1Command.C1OutBar, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8' System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.







    The Error list says the errors comes from “licenses.licx”







    and here is the content of my licenses.licx



    C1.Win.C1Command.C1CommandHolder, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8



    C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2, Version=2.6.20073.357, Culture=neutral, PublicKeyToken=79882d576c6336da



    C1.Win.C1Command.C1OutBar, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8







    The version of each component is the same as in the dll directory.

    Stacktrace:



    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)



    at C1.Win.x.aq(String A_0, Assembly A_1, String A_2, Boolean A_3)



    at C1.Win.x.an(Assembly A_0, C1ProductInfoAttribute A_1)



    at C1.Win.x.k(Assembly A_0, LicenseContext A_1, Type A_2, Object A_3, String A_4)



    at C1.Win.x.ai(Type A_0, Object A_1, String A_2)



    at C1.Win.C1FlexGrid.C1FlexGridBase…ctor()



    at C1.Win.C1FlexGrid.C1FlexGrid…ctor()







    Note:



    i get the same error if i try to place a component from c1 on a form or control or even if i open a form or a control with a c1 component

  • Posted 10 September 2017, 3:26 am EST

    Hi

    You are facing this issue because the license

    entries are referring to an older version of the assemblies. However, they may

    not exist or have a broken path.

    To fix this issue, please remove all the references

    for C1 dlls and their corresponding entries in the licenses.licx file

    also.

    Now, re-add the correct references of the dlls.

    Close and re-open all the Forms using C1 controls to create the corresponding

    entries in the licenses.licx file.

    Rebuild the entire application.

    I hope this should fix it.

    Regards,

    John Adams

    wrote in message news:221393@10.0.1.98...We have some old applications that have their own copy of old C1 Dlls but after installing a new version of c1 For winforms i cant compile the old projects any more...



    I get errors and i have no idea how to fix them i event tryed to uninstall everything that has to do with c1 and installing the old version again but that didn't help the errors i get are



    Exception occurred creating type 'C1.Win.C1Command.C1CommandHolder, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8' System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.



    Exception occurred creating type 'C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2, Version=2.6.20073.357, Culture=neutral, PublicKeyToken=79882d576c6336da' System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.



    Exception occurred creating type 'C1.Win.C1Command.C1OutBar, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8' System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.



    The Error list says the errors comes from "licenses.licx"



    and here is the content of my licenses.licx

    C1.Win.C1Command.C1CommandHolder, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8

    C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2, Version=2.6.20073.357, Culture=neutral, PublicKeyToken=79882d576c6336da

    C1.Win.C1Command.C1OutBar, C1.Win.C1Command.2, Version=2.0.20072.19209, Culture=neutral, PublicKeyToken=e808566f358766d8



    The version of each component is the same as in the dll directory. Stacktrace:

    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)

    at C1.Win.x.aq(String A_0, Assembly A_1, String A_2, Boolean A_3)

    at C1.Win.x.an(Assembly A_0, C1ProductInfoAttribute A_1)

    at C1.Win.x.k(Assembly A_0, LicenseContext A_1, Type A_2, Object A_3, String A_4)

    at C1.Win.x.ai(Type A_0, Object A_1, String A_2)

    at C1.Win.C1FlexGrid.C1FlexGridBase..ctor()

    at C1.Win.C1FlexGrid.C1FlexGrid..ctor()



    Note:

    i get the same error if i try to place a component from c1 on a form or control or even if i open a form or a control with a c1 component

    http://helpcentral.componentone.com/cs/forums/p/80276/221393.aspx#221393



  • Posted 21 January 2021, 6:55 am EST

    This solution is not working for us

  • Posted 21 January 2021, 7:14 pm EST

    Hi,

    The issue has been replied in the portal case you created.

    Thanks.

Need extra support?

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

Learn More

Forum Channels