New to Telerik Reporting? Download free 30-day trial

XAML Resources-Related Errors Occur on Building Silverlight Applications

Environment

Product Progress® Telerik® Reporting
Version Q2 2012 and later
Report Viewers Silverlight

The Silverlight Report Viewer and its WCF Reporting Service are no longer supported and deployed with the installation of Telerik Reporting. The last release of Telerik Reporting with included Silverlight Report Viewer is R1 2023.

Description

XAML resources-related errors occur on building an application that uses the Silverlight ReportViewer.

Error Message

The error messages are similar to The name "XYZControl" does not exist in the namespace "clr-namespace:Telerik.XXXX;assembly=Telerik.XXXX". [path]\Themes\[theme_name]\Telerik.XXXX.xaml.

Cause

The possible causes are the following:

  • As of Telerik Reporting Q1 2014, the Silverlight ReportViewer uses implicit styles. Therefore, when the Telerik.ReportViewer.Silverlight.xaml template file is not loaded correctly, the viewer is not displayed.
  • Error messages may occur if the additionally required XAML files are not loaded or are not of a version synchronized with Telerik Reporting.

Solution

Double-check if the XAML resources are loaded in the application and if the dependencies between Telerik Reporting and Telerik UI for Silverlight are considered. For more details about the settings required by the Silverlight ReportViewer, refer to the article on adding the report viewer to a Silverlight application.

In this article