telerik assembly conflict problem

2 posts, 0 answers
  1. Lukasz
    Lukasz avatar
    18 posts
    Member since:
    Aug 2014

    Posted 15 Sep 2015 Link to this post


    I am using object datasource in my application and ReportDesigner as described here:

    My solution is to copy reportdesigner exe and config file into my project dir and add relative path to build dir (bin/Debug) of my application.

    This was ok for 2015 Q1. When I switched to 2015 Q2 reportdesigner stopped working with this exception:

    [2015-09-15 09:58] FATAL: An error has occurred. Restarting...
    System.ArgumentException: 'Telerik.Windows.Controls.TransitionEffects.FadeTransition' is not a valid value for the 'Telerik.Windows.Controls.RadFluidContentControl.Transition' property on a Setter.
       at System.Windows.Setter.Seal()
       at System.Windows.SetterBaseCollection.Seal()
       at System.Windows.Style.Seal()
       at System.Windows.StyleHelper.SealIfSealable(Object value)
       at System.Windows.ResourceDictionary.SealValue(Object value)
       at System.Windows.ResourceDictionary.SealValues()
       at System.Windows.ResourceDictionary.AddOwner(DispatcherObject owner)
       at System.Windows.ResourceDictionary.PropagateParentOwners(ResourceDictionary mergedDictionary)
       at System.Windows.ResourceDictionary.OnMergedDictionariesChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
       at Telerik.ReportDesigner.App.MergeResourceDictionaries()
       at Telerik.ReportDesigner.WorkbenchHost.RunWorkbench()
       at Telerik.ReportDesigner.WorkbenchHost.Start()

    Finding cause of this problem was not easy. It looks like this line in reportdesigner config file:

    <probing privatePath="bin\Debug"/>

    makes reportdesigner to load telerik assemblies from this location instead of program files and reportdesigner uses different version of telerik assembiles than my application.

    I changed probing to reporting\bin\Debug where my assembly for reporting is build and problem was fixed. Of course this works because my reporting.dll assembly does not depend on telerik libraries.

    But proper solution force reportdesigner to load all telerik assemblies with version it was compiled against.

  2. Nasko
    Nasko avatar
    909 posts

    Posted 17 Sep 2015 Link to this post

    Hello Lukasz,

    You are correct. The issue is exhibited when the probing path points to a folder which contains the Telerik.Windows.Controls.dll. The reason is that the Standalone Report Designer also uses this assembly. However, the version used in the Standalone Report Designer is different from the one you are using in your project. In order to resolve the issue, either place the mentioned assembly in a different folder than the probing path or add the following binding redirect to the Telerik.ReportDesigner.exe.config file:
       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
           <probing privatePath="bin" />
             <!-- Required for interoperability with older versions of Telerik Reporting -->
             <assemblyIdentity name="Telerik.Windows.Controls" culture="neutral" publicKeyToken="5803cfa389c90ce7"/>
             <bindingRedirect oldVersion="" newVersion="x.x.x.x"/>

    where the newVersion is the version of the assembly you are using in your project.

    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top