Configuration of Telerik Report Server with custom functions

1 Answer 321 Views
Let's talk about telerik (the good and the bad) Telerik Trainer
Tamara
Top achievements
Rank 1
Tamara asked on 02 Feb 2023, 04:26 PM

Dear support team and community ,

We are using Progress Telerik Report Server R3 2022 SP1 (8.2.22.1109) and want to configure it to use reports with custom functions. We created a library in the form of a .dll file that contains the function we call. All of that was successfully done using Standalone Report Designer, we have imported the library and we are successfully accessing it using Object Data Source.
However, when we wanted to do it on the Telerik Report Server running on the IIS server, we were unable to access the custom function found in the library and got an error on the Telerik Report Server web application.
We followed the instructions from the documentation found at this link: 

 

After we copied the assembly to the bin folder and registered the same assembly in the corresponding application configuration file ([Telerik Report Server installation folder]\Telerik.ReportServer.Web\TelerikReporting.config), we got an error with this text. 

"Unable to cast object of type 'System.Configuration.DefaultSection' to type 'Telerik.Reporting.Configuration.ReportingConfigurationSection'."

 

I am sending a picture and an attachment.

 

Could you please help us in solving this problem.

1 Answer, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 07 Feb 2023, 01:43 PM

Hi Tamara,

Thank you for the attached screenshot.

Since I do not see a link to the documentation article you mentioned, I am going to assume that you are referring to the How to configure Telerik Report Server to use reports with custom functions Knowledge Base article, and are aware of the additional requirements mentioned in it.

That being said, the error you received suggests that the "<Telerik.Reporting>" configuration element cannot be resolved correctly. Could you verify that the "Telerik.Reporting" configuration section in the "[Telerik Report Server installation folder]\Telerik.ReportServer.Web\TelerikReporting.config" file is not commented out? You can check for any missing opening/closing tags as well.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
  <Telerik.Reporting>
    ...
 </Telerik.Reporting>
</configuration>

Additionally, you should take into account whether you are using the 64-bit or the 32-bit version of the Report Server when you are building your user function assemblies. It would be best to build for "AnyCPU".

If you need further assistance, please open a support ticket and attach a trace log to it which will help us troubleshoot the issue further.

Regards,
Momchil
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Let's talk about telerik (the good and the bad) Telerik Trainer
Asked by
Tamara
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Share this question
or