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

Missing Assembly?

1 Answer 331 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 11 Nov 2010, 05:27 PM
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:
<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
            //
        }
    }
}

<Window x:Class="ReportingTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf" 

    Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:ReportViewer Name="ReportViewer" />
    </Grid>
</Window>
<Window x:Class="ReportingTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf" 

    Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:ReportViewer Name="ReportViewer" />
    </Grid>
</Window>

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Nov 2010, 02:04 PM
Hello Artel,

It seems that we forgot to update the WPF assemblies version for the Q3 release. For this reason, please add a binding redirect to the new version as shown in our documentation here: Using Telerik Reports in WPF application and it should work as expected.

Sincerely yours,
Steve
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
Tags
General Discussions
Asked by
Jason
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or