【发布时间】:2012-04-20 09:52:37
【问题描述】:
您好,我正在使用带有 MVVM 模型的 WPF 应用程序。打开申请表时出现 XAML 解析器异常。它说像
无法加载文件或程序集 'Telerik.Windows.Controls.DataVisualization, PublicKeyToken=5803cfa389c90ce7' 或其依赖项之一。这 系统找不到指定的文件。
我在我的项目中的引用文件夹下有这个 DLL 文件引用,并且我在我的 XAML 中将它引用为
"xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation "
.
.
.
<DataTemplate>
// The Below line i am getting that exception
<telerik:RadColumnSparkline ShowAxis="False" ShowFirstPointIndicator="False" ShowLastPointIndicator="False" ShowHighPointIndicators="False" ShowLowPointIndicators="False" EmptyPointBehavior="DropPoint" ItemsSource="{Binding SizeProfileSparkLine}" Width="140" Height="24"/>
</DataTemplate>
我在我的项目中引用了那个 dll,但我得到了这个异常。我无法找到解决此问题的方法。谁能告诉我这个问题的解决方法?
谢谢..
【问题讨论】:
-
可能 DataVisualization 依赖于其他一些程序集。你检查过 InnerException 吗?它通常显示为什么无法加载程序集