Completed
Last Updated: 05 Dec 2017 09:33 by ADMIN
Ramu
Created on: 19 Sep 2016 17:52
Type: Feature Request
0
Reporting Error
After upgrading Telerik reporting to 10.2.16.914, I get the following error when trying to generate reports. The App.config hasn't needed any custimizations before. Why is it that every Telerik update always breaks our applications??? 

An error has occurred while processing Report 'OACLJB005':
The assembly "JobBank.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" 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.
Attached Files:
6 comments
ADMIN
Stef
Posted on: 27 Sep 2016 09:04
Hi,

The suggested configuration is related to reports upgraded to use R3 2016 release of Telerik Reporting. The external assemblies containing the data objects used by the ObjectDataSource must be declared explicitly for security reasons. This includes declaring (http://docs.telerik.com/reporting/configuring-telerik-reporting) and adding (http://docs.telerik.com/reporting/configuring-telerik-reporting-assemblyreferences) a Telerik Reporting section with AssemblyRefenrences in the configuration files of the reports and viewer's projects.
In case you are wrapping already instantiated data objects in an ObjectDataSource, you can skip that step and directly assign the data object to the corresponding DataSource component.

In order to troubleshoot further the problem, please submit a support ticket including a ZIP file with an example how the ObjectDataSource component is used. You can log in your Telerik account, having a valid subscription for current versions, and navigate to https://www.telerik.com/account/support-tickets. Then select Reporting as a product of interest. There are two screens letting you search resources based on the subject of the ticket. On the second screen you will see 'Submit Support Ticket' button.

We will be waiting for your inquiry in the support ticketing system.

Ramu
Posted on: 21 Sep 2016 17:22
Your demos don't look ANYTHING like what we have and your app.config is not set up at all like what you said to do AND THERE AR NO REPORTS!!! WHAT ARE YOU TALKING ABOUT!?!?!
Ramu
Posted on: 21 Sep 2016 16:04
Your solution still does not work. I didn't install the demos so I guess I'll have to reinstall reporting now. I still would like to know why every single time you push out an update, we have to scramble to get all of our applications to work again. And as for you support ticket system, it is pretty lousy. You could have provided a link in the initial email, but I doubt that would have helped because I still can't figure it out or find it from your site in the first place.
ADMIN
Ivan Hristov
Posted on: 21 Sep 2016 15:43
Hi Ramu,

You just need to add your assembly name in your app.config file. From your first post we assumed that the name of your assembly is "JobBank.Data", so your app.config should look like this:

  ...
  <Telerik.Reporting>
          <assemblyReferences>
              <add name="JobBank.Data"/>
        </assemblyReferences>
  </Telerik.Reporting>
   ...
</configuration>

In case this section is not present in your app.config file, you need to declare it in <configSections> element, which means you should add the following line between <configSections> tags:
<section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting" allowLocation="true" allowDefinition="Everywhere" />

You can take a look at our example reports and their configuration files for more details. They should be installed in your Telerik Reporting installation directory (usually %PROGRAMFILES(X86)%\Telerik\Reporting _release_version\Examples\CSharp\MvcDemo).
As for opening support tickets, please check the following link: https://www.telerik.com/account/support-tickets

Hope it helps.
Ramu
Posted on: 21 Sep 2016 13:26
I have no idea what these pages are trying to talk about. The ObjectDataSource is what we use to access the tables in the database of each report. Do they all need to be defined in the App.Config? Or is it the report name that needs to be defined there? I've tried both with no luck. Can you post an example of an MVC 5 application that has reports? Also, I don't see anywhere on your site to actually open a support ticket.
ADMIN
Ivan Hristov
Posted on: 20 Sep 2016 06:50
Hi Ramu,

In R3 2016 we improved the security of the ObjectDataSource component due to users demand. Now it can only load types that are declared either in the current report's assembly or in AssemblyReferences element nodes in Telerik.Reporting section of application configuration file. We announced this breaking change in the Upgrade Path article here: http://docs.telerik.com/reporting/upgrade-path-2016-r3#api-breaking-changes and a blog post is on the way as well.
To make your assembly recognized by the report engine you just need to declare it in your app.config or web.config file, as explained here:
http://docs.telerik.com/reporting/objectdatasource#configuration

If you need further assistance please open a support ticket and provide more details so we can investigate it on our side.