问题描述
我有一个第三方.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 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'问题构建了混合模式程序集.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!