Converting .net framework reports to .net 6

1 Answer 339 Views
.NET Core .NET Framework Report Designer (standalone) Report Viewer - WinForms Upgrade
Van
Top achievements
Rank 1
Van asked on 09 Aug 2023, 05:06 PM

I have a bunch of reports that were created in .net framework 4.7.2 using the Visual Studio report designer (created as .cs files).  I'm upgrading the solution to .net 6.

I've updated to the correct nuget packages for Telerik winforms and Telerik Reporting, and from what I've read, I need to convert all those reports to a format that will work in the standalone report designer.

I moved all the reports to their own class library, built the solution, an then tried to open that library's .dll file in the standalone designer as described here:

https://docs.telerik.com/reporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/how-to-import-reports-created-with-the-vs-report-designer

Every time, I get an error:

System.Reflection.TargetInvocationException... System.IO.FileNotFoundException: Could not load file or assembly 'System.ComponentModel.TypeConverter, Version=6.0.0.0... The system cannot find the file specified.

I cannot find any reference to that in the report files, and I can't find any verion 6.0.0.0 for .net 6 out there to even install.  I did try adding a package reference to a .net std verion, but it's 4.x from 2016.

How can I get past this error so the report can be imported?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 11 Aug 2023, 07:10 AM

Hello Van,

We discussed this in a separate ticket but to share what was the problem with the rest of the community, the assembly was built targeting .NET 6 which makes it unresolvable by our default Standalone Report Designer because it is a .NET Framework application and cannot load .NET/.NET Core assemblies.

The solution is to add the reports to a .NET Framework Class Library and load the assembly built from it instead by following the Importing reports created with the Visual Studio Report Designer - Telerik Reporting article.

I hope that the provided information will help, please let me know if you need further assistance.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Van
Top achievements
Rank 1
commented on 11 Aug 2023, 12:24 PM

I knew I had to be missing something obvious!  

Thank you!

Tags
.NET Core .NET Framework Report Designer (standalone) Report Viewer - WinForms Upgrade
Asked by
Van
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or