针对版本'v1.1.4322'问题构建了混合模式程序集. [英] Mixed mode assembly is built against version 'v1.1.4322' problem.

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

问题描述

我有一个第三方.dll给我这个错误:

I have a third party .dll that is giving me this error:

混合模式程序集是针对运行时的版本"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.

目标是.Net 4.0,我尝试将其添加到我的app.config:

The target is .Net 4.0, and I tried adding this to my app.config:

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

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

这可在.exe上运行,但不幸的是,此应用程序是ArcGIS的插件并且没有可执行文件.有什么想法吗?

This works on an .exe, but unfortunately this application is a plugin to ArcGIS and has no executable. Any ideas?



推荐答案

如果您有在.NET 1.1下编译的DLL,则必须安装.NET 1.1.  它使用与.net 4.0框架完全不同的CLR(1.1 clr).

If you have a DLL that was compiled under .NET 1.1 you have to install .NET 1.1.  It uses a whole different CLR (1.1 clr) than the .net 4.0 framework.

如果已经安装.NET 4.0,则可以与其他.NET版本一起安装它.

You can install it no problem alongside other .NET versions, if .NET 4.0 is already installed.

您可以在以下网址获取它: http://www.microsoft.com/download/zh-CN/details.aspx?displaylang=en&id=26

You can get it at : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=26

我认为即使是混合模式,您仍然需要安装1.1.

I think you would still need 1.1 installed even if mixed mode.

您的app.config看起来正确.  

Your app.config looks correct.  


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

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