Click here to Skip to main content
15,884,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 7-Aug-18 23:48pm
Comments
Simon_Whale 3-Aug-18 12:09pm    
I would have to ask the obvious have you checked to make sure that the dll in the installed directory?
Ganesh B Patil 3-Aug-18 12:13pm    
Yes, that dll is already present in installed directory.
Because it is working fine when there is Visual Studio installed.
Richard MacCutchan 3-Aug-18 12:39pm    
It sounds like you are trying to use a dll that is part of Visual Studio, but not part of the standard Windows distribution. Should be easy enough to check.
[no name] 4-Aug-18 12:56pm    
"xyz" probably has its own dependencies that are not being met (and which are causing the actual error message).

1 solution

The issue resolved with runtime libraries(Microsoft Visual C++ Redistributable for Visual Studio 2017)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900