简体   繁体   English

错误:无法加载 DLL '.dll':找不到指定的模块。 (HRESULT 异常:0x8007007E)- 这是什么错误?

[英]Error: Unable to load DLL '.dll' : The specified module could not be found. (Exception from HRESULT: 0x8007007E) - What is this error?

The Situation:情况:

I'm trying to run CharLS JPEG-LS Compression algorithm implementation我正在尝试运行CharLS JPEG-LS 压缩算法实现

There is source code in the site about where you can download a C# VS 2010 Solution.站点中有关于您可以在哪里下载 C# VS 2010 解决方案的源代码。 In the Solution there are, 2 C# Class Library Projects, 1 Unmanaged VC++ project and 1 C# Console App.在解决方案中,有 2 个 C# Class 库项目、1 个非托管 VC++ 项目和 1 个 C# 控制台应用程序。 The console App calls one of the class libraries, `using CharLS;', and that particular library references the unmanaged VC++ project.控制台应用程序调用 class 库之一,“using CharLS;”,并且该特定库引用非托管 VC++ 项目。 The console application works perfectly on debug mode.控制台应用程序在调试模式下完美运行。

The Problem:问题:

But when I compiled the console app for "Release", and ran the.exe (executable file), when a particular function is called during the process, it gives me this error:但是当我为“发布”编译控制台应用程序并运行.exe(可执行文件)时,当在此过程中调用特定的 function 时,它会给我这个错误:

Error: Unable to load DLL 'CharLS.dll': The specified module could not be found.错误:无法加载 DLL 'CharLS.dll':找不到指定的模块。 (Exception from HRESULT: 0x8007007E) (HRESULT 异常:0x8007007E)

I've also tried to create another project and reference the class library from there, but I get the same error.我还尝试创建另一个项目并从那里引用 class 库,但我得到了同样的错误。

I've tried reading other solutions for this over the.net but they have not helped me.我已经尝试通过 .net 阅读其他解决方案,但它们对我没有帮助。

Some of the reasons for this error could be:此错误的部分原因可能是:

  1. the name you are providing to the "EntryPoint" property of "DllImport" attribute is not matching with the function you are exporting from the native component.您提供给“DllImport”属性的“EntryPoint”属性的名称与您从本机组件导出的 function 不匹配。

  2. Another reason could be missing dll itself/or any of its dependencies(use dependency walker and check)另一个原因可能是缺少 dll 本身/或其任何依赖项(使用依赖项 walker 并检查)

  3. Third reason could be it could be debug/release version mismatch.第三个原因可能是调试/发布版本不匹配。

Have you (re-)built the project before run in Release mode?在以发布模式运行之前,您是否(重新)构建了项目? Looks like you didn't and release output contains no such lib.看起来你没有,发布 output 不包含这样的库。 Check it anyway.无论如何都要检查一下。

Ensure it's definitely registered on the server.确保它确实已在服务器上注册。 Also have you got the Application Pool (assuming IIS7+) set to allow 32-bit processes?您是否也将应用程序池(假设是 IIS7+)设置为允许 32 位进程?

If you have the dll just add it manually to the build output folder (bin).如果您有 dll,只需将其手动添加到构建 output 文件夹 (bin)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载DLL'LibFlac':找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - Unable to load DLL 'LibFlac': The specified module could not be found. (Exception from HRESULT: 0x8007007E) DllNotFoundException:无法加载DLL'nativrd2.dll':找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - DllNotFoundException: Unable to load DLL 'nativrd2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 调试无法加载DLL“ MyDll.dll”:找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - Debugging Unable to load DLL 'MyDll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) '' 无法加载 DLL 'mfplat.dll':找不到指定的模块。 (HRESULT 异常:0x8007007E)” - '' Unable to load DLL 'mfplat.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" DLLnotfoundexception:无法加载DLL'Pine.dll':找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - DLLnotfoundexception:Unable to load DLL 'Pine.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 无法加载 DLL 'Microsoft.WITDataStore32.dll':找不到指定的模块。(来自 HRESULT 的异常:0x8007007E) - Unable to load DLL 'Microsoft.WITDataStore32.dll':The specified module could not be found.(Exception from HRESULT:0x8007007E) 无法加载 DLL 'SqlServerSpatial150.dll': 找不到指定的模块。 (HRESULT 异常:0x8007007E) - Unable to load DLL 'SqlServerSpatial150.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) C# 错误:无法加载 DLL 'AutoItX3.dll':找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E) - C# error: Unable to load DLL 'AutoItX3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) System.DllNotFoundException:'无法加载 DLL'libwkhtmltox':找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E)' - System.DllNotFoundException: 'Unable to load DLL 'libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)' 无法加载 DLL 'ABCpdf9-64.dll'。 找不到指定的模块(来自 HRESULT 的异常:0x8007007E) - Unable to load DLL ‘ABCpdf9-64.dll’. The specified module could not be found (Exception from HRESULT: 0x8007007E)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM