为什么我得到的异常:Could not load type ' y'System.Xaml'

本文关键字:type Xaml System load not 异常 Could 为什么 | 更新日期: 2023-09-27 18:17:09

我有一个使用。net 4客户端配置文件框架的WPF应用程序。当我把它安装在一台新的Windows XP机器上,并安装了。net 4客户端配置文件。我有这个错误信息启动应用程序。

无法加载"System.Windows.Markup.ValueSerializerAttribute"类型来自assembly 'System。Xaml,版本=4.0.0.0,文化=中性,都要。

我检查了 system . xml .dll,它在:

C: ' WINDOWS ' Microsoft.NET ' Framework ' v4.0.30319

有什么想法吗?提前谢谢。

编辑:

我在msdn网站上找到了这个信息:

:Windows 7、Windows Vista SP1或更高版本、Windows XP SP3、Windows Server 2008(不支持Server Core)、Windows Server 2008 R2 (SerWindows Server 2003 SP2

为什么我得到的异常:Could not load type ' y'System.Xaml'

您正确地错过了VisualStudio c++运行时。这是DevExpress的一个大问题,所以你可能会得到另一个异常:

FileNotFoundExeption在新pc和DevExpress上是"正常的"

当我从12.2.4到13.1.4更新DevExpress时,问题得到了解决。不知道具体原因,但它解决了问题。