简体   繁体   English

为什么会出现异常:无法从程序集“ System.Xaml”加载类型“ xy”?

[英]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.

相关问题 C#使用System.Xaml缺少程序集参考 - C# using System.Xaml missing assembly reference Autofac异常:无法从程序集中加载类型 - Autofac Exception: Could not load type from assembly 无法从Mono中的程序集异常加载类型 - Could not load type from assembly exception in mono 找不到System.Xaml? - Cannot find System.Xaml? 为什么我得到System.IO.FileLoadException:无法加载文件或程序集,大约每周一次在我的ASP.Net网站上? - Why do I get System.IO.FileLoadException: Could not load file or assembly, about once a week on my ASP.Net Website? “无法从程序集'mscorlib,Version = 3.7.0.0加载类型'System.Action'”异常 - “Could not load type 'System.Action' from assembly 'mscorlib, Version=3.7.0.0” exception 将引用设置为“ copylocal = false”时,为什么会出现“ System.IO.FileNotFoundException:无法加载文件或程序集”的问题? - Why do I get “System.IO.FileNotFoundException: Could not load file or assembly” when setting reference to “copylocal=false”? 尝试获取自定义配置部分时,“无法从程序集中加载类型x”异常 - “Could not load type x from assembly” Exception When Trying to Get Custom Configuration Section 无法从程序集'System.Web,...'加载类型'...' - Could not load type '…' from assembly 'System.Web, …' System.TypeLoadException:无法从程序集“ x”加载类型“ x”吗? - System.TypeLoadException: Could not load type 'x' from assembly 'x'?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM