【问题标题】:The specified module could not be found. (Exception from HRESULT: 0x8007007E)指定的模块无法找到。 (来自 HRESULT 的异常:0x8007007E)
【发布时间】:2011-03-25 17:05:48
【问题描述】:

以下是我在输出窗口中遇到的错误

A first chance exception of type 'System.NullReferenceException' occurred in ImageEditorPlugin.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in ImageEditorPlugin.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
The program '[3884] FlirBuildIR.vshost.exe: Managed' has exited with code 0 (0x0).

请帮帮我

【问题讨论】:

  • 你还需要告诉我们你做了什么导致这个错误。
  • 我通过按 F5 构建了我的应用程序,它显示以下错误。"-------------------------- - 应用程序失败 ------------- 找不到指定的模块。(HRESULT 异常:0x8007007E)

标签: .net


【解决方案1】:

您的ImageEditorPlugin.dll 似乎正在尝试访问一个不存在的文件..

【讨论】:

  • 我们在运行时从应用程序目录加载 dll。即使 ImageEditorPlugin.dll 存在于应用程序目录中,它也无法加载并通过异常
  • 也许 ImageEditorPlugin 依赖于额外的 dll,不存在?
  • 但是当我直接从 debug/release 文件夹打开 exe 时,它​​工作正常。当我在 VS2008 中运行它时,它是上面解释的异常。我在 Dependency Walker 中打开了 exe,它显示 IEFRAME.DLL 的警告为“警告:由于延迟加载依赖模块中缺少导出功能,至少一个模块具有未解析的导入。”
  • @suman 请阅读错误信息。他们没有那么可怕。很明显 ImageEditorPlugin.dll 正在被发现,因为该 DLL 中引发了异常。
  • @david。谢谢(你的)信息。我已经确定了异常并且能够修复它。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多