"该组件是由一个运行时比当前加载运行时更新的构建并不能装载" [英] "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded"

查看:102
本文介绍了"该组件是由一个运行时比当前加载运行时更新的构建并不能装载"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了错误:该组件由一个运行时比当前加载的运行库更新,无法加载建成

我有一个被称为一个.NET 2.0的项目在.NET 4.0 DLL项目。有没有办法调和框架的区别?

解决方案
  

我有一个被称为一个.NET 2.0的项目在.NET 4.0 DLL项目。有没有办法调和框架的区别?

不是这样的一轮,没有。在.NET CLR 4可以加载.NET 2集。(通常是 - 有一些例外的混合模式组件,IIRC),而不是相反。

您要么必须升级.NET 2项目.NET 4中,或降级的.NET 4项目.NET 3.5(或更早)。

I'm getting the error: "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."

I have a .NET 4.0 dll project that is being called by a .NET 2.0 project. Is there a way to reconcile the difference in framework?

解决方案

I have a .NET 4.0 dll project that is being called by a .NET 2.0 project. Is there a way to reconcile the difference in framework?

Not that way round, no. The .NET 4 CLR can load .NET 2 assemblies (usually - there are a few exceptions for mixed-mode assemblies, IIRC), but not vice versa.

You'll either have to upgrade the .NET 2 project to .NET 4, or downgrade the .NET 4 project to .NET 3.5 (or earlier).

这篇关于"该组件是由一个运行时比当前加载运行时更新的构建并不能装载"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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