Upgrade issues with ObjectDataSource Component after Telerik Reporting R3 2016
|Product||Progress® Telerik® Reporting|
|Version||R3 2016 and later|
|Report Item||ObjectDataSource Component|
As of R3 2016 we provide stricter rules for external assemblies used by reports to get data. This is a breaking change that may lead to the following error on preview, even after running the Upgrade Wizard.
An exception has occurred while processing 'REPORTNAME' item: System.Security.SecurityException: The assembly "EXTERNAL_ASSEMBLY_TYPE" is not permitted to be used by an ObjectDataSource component. Please include it in an AssemblyReferences element in the Telerik.Reporting configuration section of your application configuration file.
The assembly supposed to be used by the ObjectDataSource is not referenced in the application configuration file;
The assembly is incorrectly referenced;
The ObjectDataSource component is designed to read the assembly information from the current project's configuration file. Thus, the assembly to be used by the ObjectDataSource component must be referenced in the AssemblyReferences element in the Telerik.Reporting configuration section of your application configuration file.
The Standalone Report Designer tool's configuration file, if you intend to use an ObjectDataSource component - Extending Report Designer;
The configuration file of the project containing the Telerik Reports.
The configuration file of the desktop application displaying/processing programmatically the report or the configuration file of the Reporting REST|WCF Service project, this place is where reports are handled for web viewers.
It is recommended to keep reports in a separate project e.g. ClassLibrary project. The ObjectDataSource component's settings can be added automatically by re-running the ObjectDataSource Wizard in Visual Studio Report Designer.