Reporting ASP.Net Core REST Service Configuration

4 posts, 2 answers
  1. Georgios
    Georgios avatar
    2 posts
    Member since:
    Feb 2017

    Posted 09 Feb 2017 Link to this post

    Dear support team,

    We have implemented an ASP.NET Core REST Service controller which inherits from Telerik.Reporting.Services.AspNetCore.ReportsControllerBase. In addition, we have designed a report that consist of an ObjectDataSource, which is expected to call a function from a particular class, in order to get the report data.

    When HTML 5 Report Viewer requests for the report from the REST service, we get the following error:

    An error has occurred while processing Report 'ReportName':
    The assembly "MyAssembly, Version=, 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.

    According to other posts, this error most likely occurs because the assembly name has not been added to the 'Telerik.Reporting/AssemblyReferences'  section of the web.config of the project. In our case though, we don't have a web.config file since we are using ASP.NET Core.

    Could you please advice how we could overcome this issue?


    Kind regards,




  2. Answer
    Paul avatar
    14 posts
    Member since:
    Oct 2016

    Posted 09 Feb 2017 Link to this post


    Just a thought whilst you are waiting for the support team / experts (l have not used objectdatasource). core uses the app.config file, l know this as it got me when l needed to add a reference to an assembly containing custom functions for the reports.
    Also, if you are using IIS for hosting the web.config file still gets used by IIS.

    My entry in the app.config file:

    <add name="MyTestProject.Telerik.CustomFunctions" version="" culture="neutral" publicKeyToken="null" />


  3. Answer
    Stef avatar
    3610 posts

    Posted 09 Feb 2017 Link to this post


    That is correct.
    You can add an app.config file at root level and it will be used by the Reporting engine to read connection strings and other settings not applicable in json files.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Georgios
    Georgios avatar
    2 posts
    Member since:
    Feb 2017

    Posted 13 Feb 2017 Link to this post

    Thank you Paul & Stef, I applied what you suggested and it worked!!!:)

Back to Top