This is a migrated thread and some comments may be shown as answers.

Exception with WPF Report Viewer

2 Answers 255 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Homam
Top achievements
Rank 1
Homam asked on 26 Sep 2010, 09:59 AM
Hi,

I am new to Telerik reporting, and I have just tried using it via the Trial version (Q2 2010).  I have successfully created a report and preview it , but when I try to use the WPF viewer I hit the following exception.

Could not load file or assembly 'Telerik.Windows.Controls, Version=2010.1.421.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.ReportViewer.Wpf;component/Themes/OfficeBlack/ReportViewer.xaml'.

The problem occurs when I run the WPF Application which has the Report viewer

I have found that if I add a reference to
  • Telerik.Windows.Controls.dll, 
  • Telerik.Windows.Controls.Input.dll, 
  • Telerik.Windows.Controls.Navigation.dll,
  • Telerik.Windows.Data.dll 


Notes:
  • I've the Q2 Rad controls SP1 and also Q2 Rad controls SP1
  • I've Visual Studio 2008 SP1 & .Net Framework 3.5 SP1

Any Help !!

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Sep 2010, 04:22 PM
Hi Homam,

When you use Telerik RadControls for WPF version greater than 2010.1.421.35 you have to redirect all assemblies required by the Telerik WPF ReportViewer to their latest versions. To do this, add bindingRedirects to your app.config and replace the "2010.1.421.35" with the exact version of Telerik RadControls for WPF assemblies as explained in the Using Telerik Reports in WPF application help article.

Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mahail
Top achievements
Rank 1
answered on 24 May 2012, 02:12 PM
I had the same problem. Just add the reference to UIAutomationProvider and UIAutomationTypes to fix the problem.
Tags
General Discussions
Asked by
Homam
Top achievements
Rank 1
Answers by
Peter
Telerik team
Mahail
Top achievements
Rank 1
Share this question
or