The WPF Application Cannot Be Built Error Occurs
|Product||Progress® Telerik® Reporting|
|Version||Q2 2012 and later|
An error that the WPF application cannot be built occurs.
The name "XYZControl" does not exist in the namespace "clr-namespace:Telerik.XXXX;assembly=Telerik.XXXX". [path]\Themes\[theme_name]\Telerik.XXXX.xaml.
The possible causes for the error are the following:
This error message may appear after upgrading to a later Telerik Reporting version.
As of Telerik Reporting Q1 2014, the WPF ReportViewer uses implicit styles. Therefore, the error may also occur if the styles that are applied to the WPF ReportViewer are not implicit.
Telerik.ReportViewer.Wpf.xamltemplate file may not be loaded correctly and the viewer is not displayed.
The additionally required XAML files may not be loaded or may not be of a version synchronized with Telerik Reporting.
To solve this issue, double-check if the XAML resources are loaded in the application and if the dependencies between Telerik Reporting and Telerik UI for WPF are considered. For more information about the settings required by the WPF ReportViewer, refer to the article on the manual setup of the WPF ReportViewer.
Note that the 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. The manual update includes the Telerik UI for WPF assemblies distributed by Telerik Reporting. If you use Telerik UI for WPF as a separate product, run the Telerik UI for WPF Upgrade Wizard which will automatically update the Telerik UI for WPF assembly references and XAML resources.