Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
来源:互联网 发布:软件测试数据一致性 编辑:程序博客网 时间:2024/06/06 05:25
最近在升级到VS2010后,程序出现了如下这条错误:
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.
经过网上查找,最后在CONFIG 中添加如下代码解决,这个文件为appname.exe.config:
<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 additio
- .NET Business Connector mode assembly is built against version 'v2.0.50727' of the runtime
- 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
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and...问题——C# DirectXSound
- VS2012加载DLL编译出现试图加载格式不正确的程序; 以及运行出现Mixed mode assembly is built against version 'v2.0.50727' of the
- C#中遇到dll与.net 4.0不兼容,Mixed mode assembly is built against version 'v2.0.50727' 的解决办法
- Mixed mode assembly is built against ver
- module rewrite_module is built-in and can't be loaded
- Could not find the required version of the Java(TM)2 Runtime Environment in '(null)' 解决办法
- Could not find the required version of the Java(TM)2 Runtime Environment in '(null)' 解决办法
- ReflectionTypeLoadException: The classes in the module cannot be loaded.
- UserWarning: The installed version of numexpr 2.4 is not supported in pandas and will be not be used
- The document appears to be corrupted and cannot be loaded
- File xxx.ps1 cannot be loaded because the execution of scripts is disabled on this system
- 解决Firefox [ The URL is not valid and cannot be loaded ] 问题
- The project cannot be built
- 10款jQuery幻灯插件推荐
- 创建可以输出函数的DLL-vb教程
- 为你的网站介绍10个非常有用的jQuery插件
- android 学习之---Android之SurfaceView学习(一)
- Ubuntu10.04 Android开发环境搭建
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additio
- Flah视频会议教学系统二次开发组件
- jQuery应用程序架构设计工具(PPT)
- android widget 开发实例
- 为VB6创建纯资源DLL(图片教程)
- (转)【探索wireshark】 熟悉GTK+
- ASTIP
- Javascript的IE和Firefox(火狐)兼容性
- Android平台OpenMax多媒体引擎介绍