.NET 4 的 FileLoadException

发布于 2024-09-08 13:54:52 字数 317 浏览 1 评论 0原文

我正在尝试使用 OpenNURBS 工具包 (请参阅此处) 构建应用程序,并且收到以下 FileLoadException调试时的消息:

混合模式程序集是针对 运行时版本“v2.0.50727” 并且无法在4.0中加载 运行时无需额外 配置信息。

OpenNURBS 工具包是此时项目中唯一的非系统程序集,因此我知道问题出在该文件上。这些假定的配置选项在哪里以及是什么?任何帮助将不胜感激。

I'm trying to build an application using the OpenNURBS toolkit (see here) and I'm getting a FileLoadException with the following message while debugging:

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.

The OpenNURBS toolkit is the only non-System assembly in the project at this point, so I know the problem is with that file. Where and what are these supposed configuration options? Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一直在等你来 2024-09-15 13:54:52

您需要将以下配置添加到 app.config 文件中:

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

有关详细信息:

<启动>元素@MSDN

You need to add the following config to the app.config file:

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

For details:

<startup> Element @ MSDN

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文