程序集清单加载错误(.NET 和 C++ dll)
我的应用程序(纯 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在 Dependency Walker 中打开您的应用程序。它应该指出缺少哪个 dll。
Try open your application in Dependency Walker. it should point out which of the dll's is missing.