[转]The specified module could not be found. (Exception from HRESULT: 0x8007007E)
来源:互联网 发布:怎样看淘宝价格走势 编辑:程序博客网 时间:2024/05/03 10:41
问题:
I have a managed C++ project (MyLib) that is utilizing 3'rd party C++ code and libraries. When I have set a reference to that project (MyLib) I have seen this error. When I put the 3'rd party .dll's into the current directory the error goes away and all works as expected however the Web projects still throw this error when attempting to compile. Is there something I need to do differently for the Web project?
Here is an example of what I am trying to do ...
- I have a managed C++ project (MyLib) that uses 3'rd party C++ code and unmanaged .dll's
- I have written a C# code library that uses MyLib
- When using a console application that references the C# library I receive this error until I put the unmanaged 3'rd party .dll's into the working directory (bin/debug)
- When attempting to compile a C# Web project that references the C# library I continue to get this error even after placing the 3'rd party unmanaged .dll's into the working directory (bin/debug)
Any help that you may be able to provide would be very helpful. Thanks in advance.
一解答:
If it doesn't have the full path to the DLL, Windows searches for unmanaged DLLs in this order:
1. app's startup directory
2. app's current directory
3. c:/windows/system32
4. c:/windows/system
5. c:/windows
6. path environment variable
Options 1 and 2 are not useful in the case of a web app, it runs through IIS. Visit forums.asp.net or an IIS newsgroup at www.microsoft.com/communities for alternate deployment strategies for IIS.
I have a managed C++ project (MyLib) that is utilizing 3'rd party C++ code and libraries. When I have set a reference to that project (MyLib) I have seen this error. When I put the 3'rd party .dll's into the current directory the error goes away and all works as expected however the Web projects still throw this error when attempting to compile. Is there something I need to do differently for the Web project?
Here is an example of what I am trying to do ...
- I have a managed C++ project (MyLib) that uses 3'rd party C++ code and unmanaged .dll's
- I have written a C# code library that uses MyLib
- When using a console application that references the C# library I receive this error until I put the unmanaged 3'rd party .dll's into the working directory (bin/debug)
- When attempting to compile a C# Web project that references the C# library I continue to get this error even after placing the 3'rd party unmanaged .dll's into the working directory (bin/debug)
Any help that you may be able to provide would be very helpful. Thanks in advance.
一解答:
If it doesn't have the full path to the DLL, Windows searches for unmanaged DLLs in this order:
1. app's startup directory
2. app's current directory
3. c:/windows/system32
4. c:/windows/system
5. c:/windows
6. path environment variable
Options 1 and 2 are not useful in the case of a web app, it runs through IIS. Visit forums.asp.net or an IIS newsgroup at www.microsoft.com/communities for alternate deployment strategies for IIS.
- [转]The specified module could not be found. (Exception from HRESULT: 0x8007007E)
- The specified moduld could not be found.(Exception from HRESULT:0X8007007E
- “Can not load DLL“.\ADTVR_Live.dll”: Can not find the module. (Exception From HRESULT:0x8007007E)。
- The specified module could not be found
- The specified module could not be found
- IIS出现The specified module could not be found解决方法
- IIS出现The specified module could not be found解决方法
- Web服务器The specified module could not be found错误解决方法
- IIS出现The specified module could not be found的解决方法
- 解决IIS出现The specified module could not be found的方法
- IIS错误解决方法:The specified module could not be found、访问 IIS 元数据库失败
- LoadLibrary("TestOCX.ocx") failed-The specified module could not be found
- IIS出现The specified module could not be found错误解决方法!
- LoadLibrary("TestOCX.ocx") failed-The specified module could not be found
- monogame Unable to load DLL 'openal32.dll': The specified module could not be found
- ISAPI程序出现“The specified module could not be found”问题解决方法
- IIS不能访问,出现The specified module could not be found问题 解决方法
- GetModuleFileName False failed with error 126 (The specified module could not be found)
- [转]C++语法概括及其示例(示例代码下载)
- [转]C语言之详解#ifdef等宏
- [转]在WEB下的客户端控件的开发应用
- [转]C#程序实现动态调用DLL的研究
- [转]使用C#调用金诚信71x系列读卡器的DLL
- [转]The specified module could not be found. (Exception from HRESULT: 0x8007007E)
- 依平如夕
- [书目20080124]做个好丈夫的9大准则
- [文摘20080124]妙语解读中华12生肖的精髓含义
- 软考系统分析师考试大纲
- [转]ASP.NET 2.0中GridView无限层复杂表头的实现
- 新年新篇章
- [书目20071228]高效人士的七个习惯
- [转]C#将文件保存到数据库中或者从数据库中读取文件