混合模式程序集是针对版本“v1.1.4322"构建的 [英] Mixed mode assembly is built against version 'v1.1.4322'

查看:25
本文介绍了混合模式程序集是针对版本“v1.1.4322"构建的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 c# .net 4.0 应用程序中包含了一个 directX 播放器,该应用程序包含在此处(答案 2).问题是,当我尝试初始化对象(即 Player mPlayer=new Player())时,会发生此错误:

i've included a directX player in c# .net 4.0 app that is included here ( answer2 ) . The problem is that when i try to initialize the object ( i.e. Player mPlayer=new Player()) this error occurs :

混合模式程序集是针对运行时的v1.1.4322"版本构建的,如果没有附加配置信息,则无法在 4.0 运行时中加载.

Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

有人知道它是什么吗?

推荐答案

需要添加一个app.Config文件并设置useLegacyV2RuntimeActivationPolicy 为真.

You need to add an app.Config file and set useLegacyV2RuntimeActivationPolicy to true.

这是在 .NET 4 应用程序中使用混合模式 CLR 2 程序集所必需的.

This is required to use mixed mode CLR 2 assemblies in a .NET 4 application.

这篇关于混合模式程序集是针对版本“v1.1.4322"构建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆