Diagram and docking at same level

2 posts, 1 answers
  1. zlazic
    zlazic avatar
    3 posts
    Member since:
    May 2016

    Posted 31 May Link to this post

    I get an XmlParseException when I place a RadDiagram control at the same level as a RadDocking control and attempt to run.

    <Window x:Class="TelerikWpfApp1.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <telerik:RadDiagram>
    </telerik:RadDiagram>
    <telerik:RadDocking Grid.Column="2">
    </telerik:RadDocking>

    </Grid>
    </Window>

     

    System.Windows.Markup.XamlParseException occurred
      HResult=-2146233087
      LineNumber=14
      LinePosition=11
      Message=Could not load file or assembly 'Telerik.Windows.Controls, Version=2016.2.503.40, 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)
      Source=PresentationFramework
      StackTrace:
           at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
           at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
           at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
           at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
           at TelerikWpfApp1.MainWindow.InitializeComponent() in D:\visual studio 2015 Projects\TelerikWpfSolution\TelerikWpfApp1\MainWindow.xaml:line 1
      InnerException:
           FileName=Telerik.Windows.Controls, Version=2016.2.503.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7
           FusionLog==== Pre-bind state information ===
    LOG: DisplayName = Telerik.Windows.Controls, Version=2016.2.503.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7
     (Fully-specified)
    LOG: Appbase = file:///D:/visual studio 2015 Projects/TelerikWpfSolution/TelerikWpfApp1/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : Telerik.Windows.Controls.Docking, Version=2016.2.503.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: D:\visual studio 2015 Projects\TelerikWpfSolution\TelerikWpfApp1\bin\Debug\TelerikWpfApp1.vshost.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Telerik.Windows.Controls, Version=2016.2.503.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7
    LOG: Attempting download of new URL file:///D:/visual studio 2015 Projects/TelerikWpfSolution/TelerikWpfApp1/bin/Debug/Telerik.Windows.Controls.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Revision Number
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
           HResult=-2146234304
           Message=Could not load file or assembly 'Telerik.Windows.Controls, Version=2016.2.503.40, 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)
           Source=mscorlib
           StackTrace:
                at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
                at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
                at System.Reflection.Assembly.GetType(String name, Boolean throwOnError)
                at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlTypeToType(BamlType bamlType)
                at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId)
                at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId)
                at System.Windows.Baml2006.Baml2006Reader.Process_ElementStart()
                at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
                at System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords()
                at System.Windows.Baml2006.Baml2006Reader.Read()
                at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
                at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
           InnerException:

  2. Answer
    Dinko
    Admin
    Dinko avatar
    201 posts

    Posted 03 Jun Link to this post

    Hi Zlatic,

    Thank you for contacting us.

    We are not aware of such issue. Can you double check that you have added all the required assemblies which the RadDiagram and RadDocking controls needed? 

    1. RadDiagram
    - Telerik.Windows.Controls
    - Telerik.Windows.Controls.Diagrams
    - Telerik.Windows.Diagrams.Core

    2. RadDocking
    - Telerik.Windows.Controls
    - Telerik.Windows.Controls.Navigation
    - Telerik.Windows.Controls.Docking
    - Telerik.Windows.Data

    Keep in mind the Telerik.Windows.Controls DLL is the same for the both controls. 

    Let us know if you have managed to proceed further with your application.

    Regards,
    Dinko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top