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 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-12.0.18.227.js:1442
    start @ telerikReportViewer-12.0.18.227.js:5417

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

    https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2#html5-report-viewer-in-asp-net-core-2

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

    Thanks!

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

    Posted 15 Mar 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 Link to this post

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

    Posted 22 Aug 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.

    Regards,
    Todor
    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