Error when using ASP.NET Core 2.0 app

4 posts, 0 answers
  1. Dan
    Dan avatar
    2 posts
    Member since:
    Jun 2017

    Posted 15 Mar 2018 Link to this post

    I recently upgraded by ASP.Core beta web project to an ASP.NET Core 2.0 application with an ASP.NET Core 2.0 API behind it.

    Before the upgrade, my Telerik reports ran fine.

    Now, the HTML5 viewer appears, and throws the following error:

    "Error registering the viewer with the service. An error has occurred. The type initializer for 'Lock' threw an exception."

    In Chrome developer's console, the following javascript error shows:

    1#:1 Uncaught (in promise) Invalid cliendID
    Promise.then (async)
    refreshReport @ telerikReportViewer-
    start @ telerikReportViewer-

    I have followed the exact steps from here to support ASP.NET Core 2.0 apps:

    Any ideas what the error means and how to fix it?


  2. Dan
    Dan avatar
    2 posts
    Member since:
    Jun 2017

    Posted 15 Mar 2018 in reply to Dan Link to this post

    I solved this:


    Telerik Reporting can be used with ASP.NET Core 2.0 projects, but must target the regular .NET Framework, not .NET Core Framework.


    I rebuilt my new project to target .NET 461 and it works great.

  3. ahmed
    ahmed avatar
    4 posts
    Member since:
    Aug 2018

    Posted 19 Aug 2018 Link to this post

    isn't there any way to keep targeting to core 2 and get the reports working ? this is very disappointing to change your project to fit to the reports of Telerik !!
  4. Todor
    Todor avatar
    238 posts

    Posted 22 Aug 2018 Link to this post

    Hi ahmed,

    In order to use Telerik Reporting in a .NET Core project the latter must target the full .NET Framework. You can find more information in the reply to the support ticket you opened on the topic.

    Progress Telerik
    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
Back to Top