Hi, I have a question - is the latest version of reporting working with .Net 9 RC2? Based on https://www.telerik.com/support/whats-new/reporting#compatibility-with-_net-9-preview it should be ok. Or not?
I switched our application to .Net RC 2 and all our PDF reports ends with errors. No report is rendered. All errors are about resources like:
"The expression contains object 'ResourcesInfo' that is not defined in the current context"
Tested verion of Telerik.Reporting.Services.AspNetCore is 18.2.24.924.
3 Answers, 1 is accepted
Hello,
The .NET 9 RC2 version was released in October - .NET 9 Release Candidate 2 is now available! - .NET Blog after the latest available version at the current - Progress® Telerik® Reporting 2024 Q3 (18.2.24.924) so that version was not tested with .NET 9 RC2.
With that being said, the Q4 2024 release of Reporting coming out next week is being tested with .NET 9 RC2 and so far - it is working as expected.
The exception that you are seeing is unlikely to be as a result of the .NET version used in the project. Rather, it seems that there is an expression in the report trying to use an object/field/function that is not defined in the current context.
Do you use any custom types in the reports via the ObjectDataSource component or custom functions? If yes, please make sure that they are defined in the configuration of the project - typeReferences Element Configuration - Telerik Reporting.
If you are rendering the reports with the ReportProcessor class, please note that there is an issue when custom types are used - ReportProcessor does not respect the IConfiguration sent through its constructor. The issue will be fixed with the next release coming out next week.
If you need further assistance, please send me a runnable project where the issue is reproducible so that I can debug it locally.
Regards,
Dimitar
Progress Telerik

Well, I found problem, but I don't understand what is wrong.
I have 3 projects:
Application.TelerikReport - <PackageReference Include="Telerik.Reporting" />
Application.TelerikReport.ObjectDataSources - <PackageReference Include="Telerik.WebReportDesigner.Services" />
Application.TelerikReport.Reports - references project Application.TelerikReport.ObjectDataSources
I found Telerik.WebReportDesigner.Services is not needed, because nothing is needed to build projects. So I removed it. But now I had build error, because I have controller in 3rd project (ReportsController : ReportsControllerBase {}). So I just added reference to Telerik.Reporting.Services.AspNetCore. Everything builds fine, no error.
And that's the problem. Telerik.WebReportDesigner.Services is needed, even nothing from it is referenced anywhere and this package has been marked as not needed.
Is this by design? What exactly is so specific inside that leads to broken rendering and no build error? Or only Telerik.WebReportDesigner.Services should be referenced? What is relation between those assemblies?
Hello René,
The Telerik.WebReportDesigner.Services NuGet package is required only when using the Web Report Designer widget, the package is needed for setting up the service of the designer.
The Telerik.Reporting.Services.AspNetCore NuGet package is needed when setting up the service used by the web report viewers. For example, the ReportsControllerBase class is included with the assemblies provided by this package.
Both of those packages also depend on the Telerik.Reporting NuGet package since that is the core of the report engine. If you do not plan to use a Report Viewer or the Web Report Designer, you would need to reference only this package in your projects.
I hope that answers your inquiry. Please let me know if you have any further questions.
Regards,
Dimitar
Progress Telerik