Progress® Telerik® Reporting R2 2017

WPF ReportViewer Troubleshooting

The article provides troubleshooting for commonly met issues with the WPF ReportViewer control.

The WPF ReportViewer displays content rendered through the Reporting WPF XAML Rendering nmechanism that produces XAML loaded by the control.

"Attempt by method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost(System.Net.Http.HttpResponseMessage)' to access method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost<T> (System.Net.Http.HttpResponseMessage, System.Collections.Generic.IEnumerable`1<System.Net.Http.Formatting.MediaTypeFormatter>)' failed." error on connecting the WPF ReportViewer with Telerik Report Server or Reporting REST service.

The WPF ReportViewer control requires Microsoft.AspNet.WebApi.Client suitable for .NET4 that can be installed via Visual Studio Package Manager Console. For more details, please check How To: Use WPF Report Viewer with Report Server.

The WPF ReportViewer is not visible on running the application.

As of Telerik Reporting Q1 2014, the WPF ReportViewer control uses implict styles. When the viewer's template (Telerik.ReportViewer.Wpf.xaml) file is not loaded correctly, the viewer is not displayed. Double-check if XAML resources are loaded in the application.

More details about the settings required by the WPF ReportViewer are available in WPF ReportViewer: Manual Setup.

As of Telerik Reporting Q1 2014, the WPF ReportViewer control uses implict styles. When the viewer's template (Telerik.ReportViewer.Wpf.xaml) file is not loaded correctly, the viewer is not displayed. Also if the additionally required XAML files are not loaded or they are not of a version synchronized with Telerik Reporting, you may receive such errors. Double-check if XAML resources are loaded in the application and if dependencies between Telerik Reporting and Telerik UI for WPF are considered - WPF Dependenices per release.

More details about the settings required by the WPF ReportViewer are available in WPF ReportViewer: Manual Setup.

As of Telerik Reporting Q1 2014, the WPF ReportViewer control uses implict styles. When the viewer's template (Telerik.ReportViewer.Wpf.xaml) file is not loaded correctly, the viewer is not displayed. Also if the additionally required XAML files are not loaded or they are not of a version synchronized with Telerik Reporting, you may receive such errors. Double-check if XAML resources are loaded in the application and if dependencies between Telerik Reporting and Telerik UI for WPF are considered - WPF Dependenices per release.

More details about the settings required by the WPF ReportViewer are available in WPF ReportViewer: Manual Setup.

Important note Important

Telerik Reporting Upgrade Wizard will update only references to Telerik Reporting assemblies and configuration settings. You will have to manually update the related Telerik.ReportViewer.Wpf.xaml files, and Telerik UI for WPF XAML files distributed by Telerik Reporting. This includes manual update of Telerik UI for WPF assemblies distributed by Telerik Reporting.

If you use Telerik UI for WPF as a separate product, you can run Telerik UI for WPF Upgrade Wizard which will update Telerik UI for WPF assembly references and XAML resources automatically.

"Cannot resolve dependency to assembly 'Telerik.Windows.XXXX, Version=x.x.x.x, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'." error on running the application.

The WPf ReportViewer control is bult against a specific version of Telerik UI for WPF on each official release. Please check the dependencies for the used Telerik Reporting version - WPF Dependenices per release. You can update assembly references accordingly or add binding redirect.

More details about the settings required by the WPF ReportViewer are available in WPF ReportViewer: Manual Setup.

The report in the WPF ReportViewer is messed or different than the design-time preview.

The WPF ReportViewer displays teh report rendered in XAML format. External styles may affect the produced XAML that contains standard elements like Canvas, TextBlock and etc. Test excluding styles to check if they change the displayed content, or test exporting in a format like PDF.