混合模式程序集是针对C#中的版本“2.0.50727”构建的 [英] Mixed mode assembly is built against version '2.0.50727' in C#

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

问题描述

大家好,

我遇到了一些问题。我有一个Windows应用程序是使用.Net Framework 4.5在2012年编写的,当我打开水晶报告时由于装配问题我无法查看报告。当我运行它说,混合模式程序集是针对hte运行时版本'v2.0.50727'构建的,无法在没有其他配置信息的情况下在4.0运行时加载。



我尝试了什么:



我用谷歌搜索它找到了一些线索但没有帮助。我甚至都不知道该做什么。

谢谢大家。



Hi all,
I am having some problems. I have a windows application is written in vs 2012 with .Net Framework 4.5, when I open the crystal reports I can't view the report because of assembly problem. when I run it says,"Mixed mode assembly is built against version'v2.0.50727' of hte runtime and cannot be loaded in teh 4.0 runtime without additional configuration information."

What I have tried:

I googled it found some clue but did not help. I don't even have idea what to do.
thanks all.

<startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
  </startup>

推荐答案

<startup useLegacyV2RuntimeActivationPolicy="true">



F#脚本,.NET 4.0和混合模式程序集 - 尖锐的事情 [ ^ ]


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

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