Upgrade from 2021.1.325.310 to 2021.3.914.45

0 Answers 29 Views
General Discussions
Deltaohm
Top achievements
Rank 2
Iron
Iron
Deltaohm asked on 09 Nov 2021, 08:36 AM

Hi,

I just upgrade my solution from telerik wpf 2021.1.325.310  to 2021.3.914.45. I performed the wizard upgrade but after restart vs2019, and rebuild of solution I get runtime exceptions like this: 
'The invocation of the constructor on type 'Telerik.Windows.Controls.RadBusyIndicator' that matches the specified binding constraints threw an exception.' Line number '50' and line position '3'.
If I delete RadBusyIndicator:

''The invocation of the constructor on type 'Telerik.Windows.Controls.RadNotifyIcon' that matches the specified binding constraints threw an exception.' Line number '56' and line position '5'.'

And so on...
I restored old version and I'm waiting for help.
Thank you

Luigi

 

Martin Ivanov
Telerik team
commented on 11 Nov 2021, 02:51 PM

I am not sure that I understand the exact steps performed to upgrade the project. The first version you mentioned is 2021.1.325.310. This is a .NET Core 3.1 version. Then you mentioned, that you used the upgrade wizard to upgrade to version 2021.3.914.45 which is a .NET Framework 4.5 version. Note that this conversion is not possible with the built-in upgrade wizard. Did you mean that you manually created a .NET Framework 4.5 project, and copied the files from the .NET Core 3.1 project?

In any case, this error usually appears if the referenced Telerik assemblies are not support by the target framework of the project.

What I can suggest you is to check the reference Telerik dlls and see if they are for the .NET Framework 4.5 version. You can indicate this by the ending of the assembly version. For example, you can tell that 2021.3.914.45 is for .NET Framework 4.5 by the numbers after the last period - .45. Same goes for the .310 in the other version.

Deltaohm
Top achievements
Rank 2
Iron
Iron
commented on 23 Dec 2021, 03:14 PM | edited

Thank you Martin,
I think that there is something weird: you say that it is impossible, but I retried and the wizard works without any problem.
I attached some screenshot that can be useful to understand the situation:
Those are the assemblies used in the project:
<ItemGroup>
    <Reference Include="Telerik.Windows.Controls">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Chart">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.Chart.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Data">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.Data.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Docking">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.Docking.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.FileDialogs">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.FileDialogs.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.GridView">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.GridView.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Input">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.Input.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Navigation">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Controls.Navigation.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Data">
      <HintPath>C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Binaries\NetCore\Telerik.Windows.Data.dll</HintPath>
    </Reference>
  </ItemGroup>

Martin Ivanov
Telerik team
commented on 28 Dec 2021, 09:33 AM

I've downloaded and tested the Visual Studio Extensions that comes with versions  2021.1.325 and the latest release version of Telerik UI for WPF. Neither allows me to upgrade a .NET Core project dlls to .NET Framework ones. Even if it works, the upgrade wizard should be able to allow you only a change in the referenced Telerik dlls. This means that if you originally had a .NET Core project and you replace the dlls with .NET Framework ones, errors will occur.

What I can suggest you, in order to resolve the error, is to manually reference the Telerik dlls you need after downloading them from your telerik.com account as .msi or .zip files. Or alternatively, to use nuget packages.

Also, can you tell me which version of the Telerik Visual Studio Extension you are using?

Deltaohm
Top achievements
Rank 2
Iron
Iron
commented on 10 Jan 2022, 11:14 AM | edited

Yes, I re-downloaded from site the latest version (2021.3.1109.310) and now the solution works correctly.
Thank you

Luigi

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Deltaohm
Top achievements
Rank 2
Iron
Iron
Share this question
or