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