错误:无法加载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?
问题描述
的情况:
我试图运行 CHARLS JPEG-LS的COM pression算法实现
有源$ C $ C站点在哪里可以下载一个C#VS 2010解决方案。在解决方案有,2 C#类库项目,1不受管理的VC ++项目和1个C#控制台应用程序。控制台应用程序调用的类库之一,`使用CHARLS;,并特别库引用非托管的VC ++项目。控制台应用程序在调试模式下完美的作品。
There is source code in the site about where you can download a C# VS 2010 Solution. In the Solution there are, 2 C# Class Library Projects, 1 Unmanaged VC++ project and 1 C# Console App. The console App calls one of the class libraries, `using CharLS;', and that particular library references the unmanaged VC++ project. The console application works perfectly on debug mode.
的问题:
但是,当我编为释放的控制台应用程序,并运行.exe文件(可执行文件),当某一特定功能的过程中被调用时,它给我这个错误:
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:
错误:无法加载DLLCharLS.dll:指定的模块可能 不会被发现。 (从HRESULT异常:0x8007007E)
Error: Unable to load DLL 'CharLS.dll' : The specified module could not be found. (Exception from HRESULT: 0x8007007E)
我也试图创造另一个项目,并从那里引用类库,但我得到了同样的错误。
I've also tried to create another project and reference the class library from there, but I get the same error.
我已经尝试过网阅读其他解决方案,这一点,但他们并没有帮助我。
I've tried reading other solutions for this over the net but they have not helped me.
推荐答案
一些原因这个错误可能是:
Some of the reasons for this error could be:
-
您正在为的DllImport属性的入口点属性名称不匹配与你从本机组件输出的功能。
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.
另一个原因可能是缺少DLL本身/或任何依赖(使用依赖学步车,并检查)
Another reason could be missing dll itself/or any of its dependencies(use dependency walker and check)
第三个原因可能是它可能是调试/发行版本不匹配。
Third reason could be it could be debug/release version mismatch.
这篇关于错误:无法加载DLL的.dll“:指定的模块找不到。 (从HRESULT异常:0x8007007E) - 这是什么错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!