混合模式组件内置于version“V1.1.4322” [英] Mixed mode assembly is built against version 'v1.1.4322'

查看:183
本文介绍了混合模式组件内置于version“V1.1.4322”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经包含了DirectX的球员在C#.NET 4.0的应用程序,这里包含(answer2)。问题是,当我尝试初始化对象(即播放器MPlayer的=新播放器())出现此错误:

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.

任何人都知道它可以吗?

Anyone knows what it can be?

推荐答案

您需要添加一个app.config文件,并设置<一个href="http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx"><$c$c>useLegacyV2RuntimeActivationPolicy为true。

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

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

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

这篇关于混合模式组件内置于version“V1.1.4322”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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