Click here to Skip to main content
14,430,480 members
Rate this:
Please Sign up or sign in to 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 8-Aug-18 0:48am
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 Ghube 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.
Gerry Schmitz 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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100