[英]Why do I get the exception: Could not load type 'xy' from assembly 'System.Xaml'?
I have a WPF application with the .Net 4 client profile framework. 我有一个带有.Net 4客户端配置文件框架的WPF应用程序。 When I installed it on a new Windows XP machine, with the .NET 4 Client profile installed. 当我将其安装在安装了.NET 4客户端配置文件的新Windows XP计算机上时。 I have this error message on lunching the app. 我在午餐时收到此错误消息。
Could not load type 'System.Windows.Markup.ValueSerializerAttribute' from assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. 无法从程序集“ System.Xaml,版本= 4.0.0.0,区域性=中性,PublicKeyToken = b77a5c561934e089”中加载类型“ System.Windows.Markup.ValueSerializerAttribute”。
I checked for the System.Xaml.dll , it's there in : 我检查了System.Xaml.dll ,它在以下位置:
C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319 C:\\ WINDOWS \\ Microsoft.NET \\ Framework \\ v4.0.30319
Any ideas ? 有任何想法吗 ? Thanks in advance. 提前致谢。
EDIT : 编辑:
I found this information on the msdn website : 我在msdn网站上找到了此信息:
Platforms : Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Ser ver Core supported with SP1 or later), Windows Server 2003 SP2 平台 :Windows 7,Windows Vista SP1或更高版本,Windows XP SP3,Windows Server 2008(不支持服务器核心),Windows Server 2008 R2(SP1或更高版本支持服务器核心),Windows Server 2003 SP2
You are properly missing the VisualStudio C++ Runtimes . 您正确地缺少了VisualStudio C ++运行时 。 This is a big problem with DevExpress so you may got another exception: 这是DevExpress的一个大问题,因此您可能会遇到另一个异常:
FileNotFoundExeption
that is "normal" on new PCs and DevExpress 在新PC和DevExpress上“正常”的FileNotFoundExeption
The problem was solved when I did an update of DevExpress from 12.2.4 to 13.1.4. 当我将DevExpress从12.2.4更新到13.1.4时,此问题已解决。 Don't know why exactly, but it solved the problem. 不知道为什么会这样,但是它解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.