I downloaded the latest version of the Reporting Suite yesterday and I get this error when loading my application:
Could not load file or assembly 'Telerik.Windows.Controls, Version=2010.2.714.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'.
Project References:
Telerik.Windows.Controls: 2010.3.1110.35
Telerik.ReportViewer.Wpf 4.2.10.1110
Telerik.Reporting 4.2.10.1110
XAML File:
Code Behind:
Report Designer File:
Report Code File:
Could not load file or assembly 'Telerik.Windows.Controls, Version=2010.2.714.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'.
Project References:
Telerik.Windows.Controls: 2010.3.1110.35
Telerik.ReportViewer.Wpf 4.2.10.1110
Telerik.Reporting 4.2.10.1110
XAML File:
<
Window
x:Class
=
"ReportingTest.MainWindow"
xmlns:telerik
=
"clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
telerik:ReportViewer
Name
=
"ReportViewer"
/>
</
Grid
>
</
Window
>
Code Behind:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Data;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Imaging;
using
System.Windows.Navigation;
using
System.Windows.Shapes;
using
Telerik.ReportViewer.Wpf;
namespace
ReportingTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
var report =
new
TelerikReport();
ReportViewer.Report = report;
}
}
}
Report Designer File:
namespace
ReportingTest
{
partial
class
TelerikReport
{
#region Component Designer generated code
/// <summary>
/// Required method for telerik Reporting designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private
void
InitializeComponent()
{
this
.pageHeader =
new
Telerik.Reporting.PageHeaderSection();
this
.detail =
new
Telerik.Reporting.DetailSection();
this
.pageFooter =
new
Telerik.Reporting.PageFooterSection();
//
// TelerikReport
//
this
.Style.BackgroundColor = System.Drawing.Color.White;
this
.Items.AddRange(
new
Telerik.Reporting.ReportItemBase[] {
this
.pageHeader,
this
.detail,
this
.pageFooter});
}
#endregion
private
Telerik.Reporting.PageHeaderSection pageHeader;
private
Telerik.Reporting.DetailSection detail;
private
Telerik.Reporting.PageFooterSection pageFooter;
}
}
Report Code File:
namespace
ReportingTest
{
using
System;
using
System.ComponentModel;
using
System.Drawing;
using
System.Windows.Forms;
using
Telerik.Reporting;
using
Telerik.Reporting.Drawing;
/// <summary>
/// Summary description for TelerikReport.
/// </summary>
public
partial
class
TelerikReport : Telerik.Reporting.Report
{
public
TelerikReport()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
}
}