运行时的“V2.0.50727”,不能在4.0运行时加载,无需额外配置信息 [英] 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information

查看:248
本文介绍了运行时的“V2.0.50727”,不能在4.0运行时加载,无需额外配置信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我转换的.vcproj从VS2005到VS2010,但将它给下面提到的错误之后。

I am converting the .vcproj from VS2005 to VS2010 but after converting it is giving the below mentioned error.

更多信息:混合模式组件构建针对运行时的版本V2.0.50727,不能在4.0运行时加载,无需额外配置information.Additional信息:混合模式组件建立针对版本V2.0.50727运行时,不能在4.0运行时无需附加配置信息被加载

Additional information: 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.Additional information: 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.

,然后我添加了app.config文件在我的项目,并添加以下提到的信息在我的文件,但它仍然给了同样的错误。

and then i have added the app.config file in my project and added the below mentioned information in my file but it is still giving the same error.

          

任何一个可以帮助我解决上述问题。

can any one help me in resolving the above mentioned problem.

推荐答案

添加到您的Web /应用程序配置:

Add this to your web/app config:

<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0"/>
</startup>

另请参见<一href="http://stackoverflow.com/questions/1604663/what-does-uselegacyv2runtimeactivationpolicy-do-in-the-net-4-config">here

这篇关于运行时的“V2.0.50727”,不能在4.0运行时加载,无需额外配置信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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