Why does System.Windows.Markup.XamlParseException throw when I try to use RadChartView in UserControl XAML?

4 posts, 1 answers
  1. Eugene
    Eugene avatar
    83 posts
    Member since:
    Jan 2016

    Posted 26 Feb 2016 Link to this post

    .I have the following error when I use RadChartView: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll with message: "Could not load file or assembly Telerik.Windows.Controls.Chart, PublicKeyToken=5803cfa389c90ce7 or one of its dependencies. The system cannot find the file specified". Below is UserControl XAML code where the exception is thrown.

    <UserControl x:Class="DeviceStatus.Views.DeviceStatusView"

            <Label Grid.Row="0" Grid.Column="0" Content="Состояние прибора" VerticalAlignment="Bottom"/>
            <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding DeviceStatusModel.Header}" AutomationProperties.AutomationId="DeviceStatusTextBox"/>

            <telerik:RadCartesianChart Grid.Row="1" Grid.Column="0">


    I develop my WPF MVVM application using Prism 6. I use MS VS 2015 Professional as IDE. I had created the my app solution and shell project there using Prism Template Pack. The type of solution is Prism Unity App. After its creation I added Prism Module (WPF) and then added Prism UserControl (WPF) in Views folder of the Prism Module. XAML markup of this UserControl is shown above. Why does this error occur? Please help me eliminate it.

  2. Eugene
    Eugene avatar
    83 posts
    Member since:
    Jan 2016

    Posted 26 Feb 2016 in reply to Eugene Link to this post

    I've solved this problem in three steps:

    1) Delete the View with RadCartesianChart from my Prism Module project,

    2) Create a new View as Prism UserControl (WPF) in the Prism Module project,

    3) Drug CartesianChart from Component Pannel to this new View.

    So there is miracles and only! But nevertheless, why the error had place in old View deleted?

  3. Answer
    Ivan avatar
    44 posts

    Posted 01 Mar 2016 Link to this post

    Hello Eugene,

    With the code provided so far we could not reproduce the issue on our side. 

    You can try to restart the Visual Studio, clean and rebuild the solution and delete the.suo files. Sometimes in such situation can be helpful even to restart the computer. Most probably the Visual Studio has cached something that is causing the exception.

    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
  4. Eugene
    Eugene avatar
    83 posts
    Member since:
    Jan 2016

    Posted 28 Mar 2016 in reply to Ivan Link to this post

    I had recreated the instance of the control in XAML and error was eliminated.
Back to Top