Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
2011-01-05 15:11
1011 查看
最近在用VS2010 进行.net 4.0开发时报了如上这条错误
项目为 WINFORM,引用的DLL为2.0 而主项目为4.0 于是这个错误:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
将DLL转为 4.0 依旧报这个错误
最后在CONFIG 中添加如下代码解决:
原文地址:http://social.msdn.microsoft.com/Forums/en/clr/thread/58271e39-beca-49ac-90f9-e116fa3dd3c0
注意:VS2010 默认也会根据项目添加 STARTUP这个节点,但是仍然会报错。
需要手动添加如下代码,问题才得以解决:
useLegacyV2RuntimeActivationPolicy="true"
<REQUIREDRUNTIME version="v4.0.20506" />
项目为 WINFORM,引用的DLL为2.0 而主项目为4.0 于是这个错误:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
将DLL转为 4.0 依旧报这个错误
最后在CONFIG 中添加如下代码解决:
<CONFIGURATION> <STARTUP useLegacyV2RuntimeActivationPolicy="true"> <SUPPORTEDRUNTIME version="v4.0" /> <REQUIREDRUNTIME version="v4.0.20506" /> </STARTUP> </CONFIGURATION>
原文地址:http://social.msdn.microsoft.com/Forums/en/clr/thread/58271e39-beca-49ac-90f9-e116fa3dd3c0
注意:VS2010 默认也会根据项目添加 STARTUP这个节点,但是仍然会报错。
需要手动添加如下代码,问题才得以解决:
useLegacyV2RuntimeActivationPolicy="true"
<REQUIREDRUNTIME version="v4.0.20506" />
相关文章推荐
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration info
- “System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 错误
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- .NET Business Connector mode assembly is built against version 'v2.0.50727' of the runtime
- C#中遇到dll与.net 4.0不兼容,Mixed mode assembly is built against version 'v2.0.50727' 的解决办法
- system.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727'...问题解决方案
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
- VS2012载入DLL编译出现试图载入格式不对的程序; 以及执行出现Mixed mode assembly is built against version 'v2.0.50727' of the
- VS2012加载DLL编译出现试图加载格式不正确的程序; 以及运行出现Mixed mode assembly is built against version 'v2.0.50727' of the
- 解决方案: the selected file is a solution file but was created by a newer version of this application and cannot be opened
- UserWarning: The installed version of numexpr 2.4 is not supported in pandas and will be not be used
- .NET错误The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework
- Mixed mode assembly is built against version 'v2.0.50727' 解决方案
- Mixed mode assembly is built against ver
- objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be us
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this sy