程序集清单加载错误(.NET 和 C++ dll)

发布于 2024-08-07 14:44:09 字数 758 浏览 2 评论 0原文

我的应用程序(纯 DotNET 2.0)正在引用另一个纯 DotNET 2.0 dll,该 dll 通过 PInvoking 到非托管(C++ 2005)dll 中。在某些计算机上这工作正常,在其他计算机上则出现一致的错误消息:

Could not load file or assembly 
'C:\Program Files\Rhinoceros 4.0\Plug-ins\Grasshopper\rhcommon_c.dll' or one of its dependencies. 
The module was expected to contain an assembly manifest.

程序集清单错误 http://en.wiki.mcneel.com/content/upload/images/AssemblyManifestError.png

我一直在谷歌上搜索这个错误,但似乎其他人也遇到了这个错误,因为他们有多个命名相同的文件。这里的情况并非如此。只有一个 RhinoCommon.dll 和一个 rhcommon_c.dll

计算机安装了最新的 Microsoft C 运行时。

多谢, 大卫


编辑: 错误信息是错误的。事实上,这是另一个缺失的 dll。很奇怪,DotNET 对此感到如此困惑。

My application (pure DotNET 2.0) is referencing another pure DotNET 2.0 dll which is PInvoking into an unmanaged (C++ 2005) dll. On some computers this works fine, on others there is a consistent error message:

Could not load file or assembly 
'C:\Program Files\Rhinoceros 4.0\Plug-ins\Grasshopper\rhcommon_c.dll' or one of its dependencies. 
The module was expected to contain an assembly manifest.

Assembly Manifest Error http://en.wiki.mcneel.com/content/upload/images/AssemblyManifestError.png

I've been googling this error, but it seems that other people are running into it because they have multiple files which are named the same. This is not the case here. There is only one RhinoCommon.dll and only one rhcommon_c.dll

The computer has the latest Microsoft C Runtimes installed.

Much Obliged,
David


Edit:
The error message was wrong. It was in fact another dll which was missing. Very weird that DotNET got so confused about this.

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

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

发布评论

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

评论(1

萌能量女王 2024-08-14 14:44:09

尝试在 Dependency Walker 中打开您的应用程序。它应该指出缺少哪个 dll。

Try open your application in Dependency Walker. it should point out which of the dll's is missing.

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