Log report errors from Telerik.Reporting.Services.WebApi.ReportsControllerBase

1 Answer 110 Views
DataSource SQL Report Viewer - ASP.NET
Pascal
Top achievements
Rank 1
Pascal asked on 25 Jul 2022, 02:00 PM | edited on 25 Jul 2022, 02:00 PM

Hi, I am looking for documentation about how to log errors that occur within a report.

I'm working on an AspNet MVC implementation of Telerik.Reporting.Services.WebApi.ReportsControllerBase with a custom ReportSourceResolver. Reports are viewed with the Html.TelerikReporting().ReportViewer() htmlhelper.

All works well but I want to log error that can occur within the report itself. Is there any documentation for this or can you hint a direction?

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 27 Jul 2022, 02:31 PM

Hi Pascal,

This article explains how you can handle errors => Handle errors thrown during the report document generation and errors thrown by report viewers or the ReportProcessor class | Telerik Reporting

Using a Trace Listener

You can also log these types of things by adding a TraceListener to the project's web.config. See Microsoft documentation on how to add a listener => How to: Create and Initialize Trace Listeners - .NET Framework | Microsoft Docs

Internally, we use Trace.WriteLine() in our source code specifically so that you can troubleshoot issues with the Reporting REST service. This should help you see what is going on (I also recommend adding a couple Trace.WriteLine statements inside your custom report resolver, too).

Regards,
Lance | Manager Technical Support
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
DataSource SQL Report Viewer - ASP.NET
Asked by
Pascal
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or