当 DLL 存在时出现 System.DLLNotFoundException

发布于 2024-11-04 06:46:24 字数 317 浏览 0 评论 0原文

当我们在程序中加载 DLL 并抛出以下错误时,我收到以下错误:

Unable to load DLL 'xxx.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)

这对我来说没有意义,因为 DLL 存在,并且每次我们更改代码时都会内置到我们的安装程序中。这个 DLL 已经几个月没有改变了,而且这种情况是在我们新安装的副本大约一周前才开始发生的。有什么想法吗?该项目是一个非托管 C++ 项目,从 .NET 3.5 应用程序调用。

I am getting the following error when we load up a DLL in our program that throws the following error:

Unable to load DLL 'xxx.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)

This doesn't make sense to me because the DLL exists and is built into our installer every time we make a change to our code. This DLL has not changed in months and this just started happening about a week ago from our newly installed copies. Any ideas? The project in question is an unmanaged C++ project that gets called from a .NET 3.5 app.

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

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

发布评论

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

评论(2

动次打次papapa 2024-11-11 06:46:24

可能未找到 xxx.dll 的依赖项之一。您可以使用 DUMPBIN /dependents xxx.dll 检查其依赖项,并使用 Dependency 直观地了解一些附加信息Walker 来查看哪些在被测系统上可能不存在或无法找到。

Probably one of xxx.dll's dependencies is not being found. You can inspect its dependencies using DUMPBIN /dependents xxx.dll, and intuit some additional information by using Dependency Walker to see which ones might not be present or unfindable on the system under test.

未蓝澄海的烟 2024-11-11 06:46:24

该错误并不是说 DLL 不存在;而是说该 DLL 不存在。它表示 DLL 缺少您尝试进行的过程调用。这很可能意味着搜索路径中较早的位置存在另一个具有相同文件名的 DLL,这是一个旧版本。

您是否将 DLL 安装到与调用应用程序相同的文件夹中?

The error isn't saying that the DLL doesn't exist; it's saying that the DLL is missing the procedure call you're trying to make. This most likely means there is another DLL with the same file name earlier in the search path, that's an older version.

Are you installing the DLL into the same folder as the calling application?

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