question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Telerik Report viewer not working when combined with Asp.net core in Asp .net Boilerplate

See original GitHub issue

Reports in Telerik report viewer don’t display with Asp.net core framework in Asp.net boilerplate.

I have searched about it a lot. Check this.

(https://www.telerik.com/forums/asp-net-core-2-issue-with-reporting-r1-2019-and-antiforgery-token)

  • Your Abp package version : 4.6.0
  • Your base framework: Asp.net core 2.0 with Multipage web application (.net core 2.2 , .net framework 4.6.1)
  • Exception : Invalid Client Id
  • Steps needed to reproduce the problem :
  1. Select ABP solution with .Net core 2.0 and Multipage web application.
  2. Now try to Add Telerik report viewer and show data for Customer table.
  3. It will give you invalid client id error in console and wont display data in report viewer.

This thing will work if we create a separate solution for rest apis. It also works if use Asp.net mvc framework instead of Asp.net core.

Images attached as :

InvalidClientId Working

Have also added this issue in stack overflow : (https://stackoverflow.com/questions/56363549/telerik-report-viewer-not-working-when-combined-with-asp-net-core-in-asp-net-bo)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ismcagdascommented, Jun 24, 2019

@kfrancis according to error message [IgnoreAntiforgeryToken] must be used. If you find a way to add custom headers to Teleriks requet for getting report data, you can use abp.security.antiForgery.getToken() on JavaScript side to get value of AntiForgery token and add it to request headers.

This might work for you https://aspnetboilerplate.com/Pages/Documents/XSRF-CSRF-Protection#intercept-xmlhttprequest

1reaction
shalinjirawlacommented, Jun 3, 2019

@ryancyq This is the only console error we get “Uncaught (in promise) Invalid ClientId” We don’t get any stack trace in VS. I can upload the solution to GitHub if you would like to check.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Telerik Report viewer not working when combined with Asp ...
Telerik Report viewer not working when combined with Asp.net core in Asp .net Boilerplate · 0 · Know someone who can answer? Share...
Read more >
Error Conecting Report to an ASP.NET Core application
The error indicates that you try to open or render a report created with the Telerik Reporting version R1 2023 with an older...
Read more >
Integrate Telerik Reporting in ASP.NET Core 3.1 MVC Projects
The demonstrated approach to solve this issue is based on the Host Reports Service In ASP.NET Core 3+ article. You can also apply...
Read more >
Embedding Reporting into Your ASP.NET Core Web ...
This blog post demonstrates how to embed the Telerik HTML5 Report Viewer (or viewer for short) and host the Telerik Reporting REST Service...
Read more >
Cannot access the Reporting REST service
The error indicates that the Telerik Reporting REST Service is not working properly or cannot be accessed by the viewer. Solution. There are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found