C#:无法加载DLL'xyz.dll找不到指定的模块。 (HRESULT的例外情况:x8007007e) [英] C#: unable to load DLL 'xyz.dll the specified module could not be found. (Exception from HRESULT: x8007007e)
问题描述
我使用DllImport()在C#(WPF)中使用C ++ dll。我已经创建了一个具有发布模式的设置,并且能够在安装了Visual Studio的任何机器上运行。但无法在未安装Visual Studio的地方运行。我收到错误无法加载DLL'xyz.dll无法找到指定的模块。 (HRESULT异常:x8007007E)。请帮我摆脱这个错误。
我尝试了什么:
我也尝试为Dll提供静态路径。
运行时库解决的问题(Visual Studio 2017的Microsoft Visual C ++ Redistributable)
I am using a C++ dll in C#(WPF) using DllImport(). I have created a setup with release mode and able to run on any machine where Visual Studio installed. But not able to run where Visual Studio is not installed. I am getting the error Unable to load DLL 'xyz.dll The specified module could not be found. (Exception from HRESULT: x8007007E). Please help me for get rid off from this error.
What I have tried:
I also tried to given static path for Dll.
The issue resolved with runtime libraries(Microsoft Visual C++ Redistributable for Visual Studio 2017)
这篇关于C#:无法加载DLL'xyz.dll找不到指定的模块。 (HRESULT的例外情况:x8007007e)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!