Compile errors: 2 Upgrades and errors of The type or namespace name 'Telerik' could not be found

1 Answer 70 Views
BinaryImage General Discussions Installer and VS Extensions
George
Top achievements
Rank 1
George asked on 13 Feb 2022, 06:11 PM

I did the two latest upgrades and I cannot compile my project now. Every Telerik reference gives "The type or namespace name 'Telerik' could not be found"

I am always nervous when I do Telerik upgrades.

I emptied the licenses.licx file, which is frequently the problem.

In the Webconfig

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121FAE78165BA3D4" />
        <bindingRedirect oldVersion="1.0.0.0-2018.3.909.45" newVersion="2020.1.114.45" />
      </dependentAssembly>
      <dependentAssembly>

The version is now 2022.1.19.45. Why does the upgrade not set the correct settings?

Should it be

      <dependentAssembly>
        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121FAE78165BA3D4" />
        <bindingRedirect oldVersion="0.0.0.0-2022.1.19.45" newVersion="2022.1.19.45" />
      </dependentAssembly>

  like all the other dependenticies?

This change gives the same errors.  I assume the publicKeyToken is unchanged.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 14 Feb 2022, 12:13 PM

Hello George,

The BindingRedirect statements are customly defined by the developer's needs and as such, they are not updated automatically when the controls version is changed.

If you are updating to the controls from our latest R1 2022 release, the version used in the Binding redirect should be manually changed to 2022.1.119

For example:

<configuration>
    <runtime>
        <dependentAssembly>
            <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
            <bindingRedirect oldVersion="1.0.0.0-2022.1.119.45" newVersion="2022.1.119.45" />
        </dependentAssembly>
    </runtime>
</configuration>

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
BinaryImage General Discussions Installer and VS Extensions
Asked by
George
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or