zoukankan      html  css  js  c++  java
  • [转]The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    问题:
    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.
  • 相关阅读:
    springboot集成websocket
    验证regex表达式本身是否有问题
    Quartz Cron表达式 生成
    Cannot run program "python": CreateProcess error=2, 系统找不到指定的文件
    遇到多个构造器参数时,要考虑用构造器
    考虑使用静态工厂代替构造器
    idea自定义注释
    layui2.4.0前的table隐藏列
    002、获取屏幕大小
    001、关于TextView的一些小知识
  • 原文地址:https://www.cnblogs.com/freeliver54/p/1055844.html
Copyright © 2011-2022 走看看