Debug 0x8007007e Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow error code 0x8007007e the company Business Learn more about hiring developers or posting ads with us Stack d3d error 0x8007007e Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of windows error 0x8007007e 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to load DLL (Module could not be found HRESULT: 0x8007007E) up vote 51 down vote favorite
The Specified Module Could Not Be Found. (exception From Hresult: 0x8007007e)
8 I have dll library with unmanaged C++ API code I need to use in my .NET 4.0 application. But every method i try to load my dll i get an error: Unable to load DLL 'MyOwn.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) I have read and tried severa solutions i have found on the internet. Nothing works.. I have tried using following methods: [DllImport("MyOwn.dll", CallingConvention = unable to load dll the specified module could not be found. (exception from hresult: 0x8007007e CallingConvention.Cdecl)] [return: MarshalAs((UnmanagedType.I4))] public static extern Int32 MyProIni(string DBname, string DBuser_pass, string WorkDirectory, ref StringBuilder ErrorMessage); When I tried following this article and when I run this example (from the downloaded code) it runs without a problem (the dll used is in the bin/debug folder) I have copied my dll (along with all files the it depends on into my bin folder). I also tried this approach but got the same error: [DllImportAttribute(MyOwnLibDllPath, EntryPoint="TMproIni")] [return: MarshalAs(UnmanagedType.I4)] public static extern int MyproIni(string DBname, string DBuser_pass, string WorkDirectory, ref StringBuilder ErrorMessage); Any suggestions? c# c++ dll pinvoke share|improve this question edited Jul 29 '12 at 9:10 Drew Noakes 127k73394489 asked Jan 25 '12 at 12:55 Ingimar Andresson 4401715 add a comment| 10 Answers 10 active oldest votes up vote 62 down vote From what I remember on Windows the search order for a dll is: Current Directory System folder, C:\windows\system32 or c:\windows\SysWOW64 (for 32-bit process on 64-bit box). Reading from the Path environment variable In addition I'd check the dependencies of the DLL, the dependency walker provided with Visual Studio can help you out here, it can also be downloaded for free: http://www.dependencywalker.com share|improve this answer edited Sep 20 at 10:01 Graviton 36.1k99331509 answered Jan 25 '12 at 13:11 display101 1,4051110 found some dependency'
, .NET Framework > Visual C# Question 1 Sign in to vote I have moved a C# project from Visual Studio 2003 to Visual Studio 2005 Express. I get the "unable to load the specified module could not be found exception from hresult 0x8007007e in c# dll HRESULT 0x8007007E" error when making a call to an unmanaged dll. This previously
The Specified Module Could Not Be Found Exception From Hresult 0x8007007e Null
worked OK before. I have tried putting the dll into the bin\debug directory, the windows and system32 directories with no success.
Visual Studio Dependency Walker
I have also added the debug directory to the environment path variable but still no success. I have investigated trying to put a dependancy in the project on the dll but can't find a method http://stackoverflow.com/questions/9003072/unable-to-load-dll-module-could-not-be-found-hresult-0x8007007e of achieving this. I have also tried running the application and the dll outside of the IDE in the same directory and it still can't find the dll. Is there a difference in the way Framework 2.0 loads unmanged dlls compared to 1.1? Additional information. I have both 1.1 and 2.0 Frameworks installed. The project still works in Visual Studio 2003. Any help would be appreciated. Regards Kelvin Saturday, July 08, https://social.msdn.microsoft.com/Forums/vstudio/en-US/6793785a-ec98-4453-a62b-f1a85195ec05/unable-to-load-dll-hresult-0x8007007e?forum=csharpgeneral 2006 8:20 AM Reply | Quote Answers 5 Sign in to vote The DLL might itself require some other DLL. In case of doubt, use Dependency Walker... Saturday, July 08, 2006 9:57 AM Reply | Quote Moderator All replies 5 Sign in to vote The DLL might itself require some other DLL. In case of doubt, use Dependency Walker... Saturday, July 08, 2006 9:57 AM Reply | Quote Moderator 0 Sign in to vote Thanks, Its not until somebody says something blindingly obvious that a light bulb switches on. Cheers Saturday, July 08, 2006 12:16 PM Reply | Quote 2 Sign in to vote I had the same issue before. You have to check two choices...1- You location isn't correct2 - You have dependencies. Maybe in your Visual Studio 2003 you had another path within your project path. Check them to see what it is. Some folder is included you need to find which.Take a look at http://www.dependencywalker.com/ and you can see if your dll requires another dll. Proposed as answer by FrankyHollywood Wednesday, June 10, 2009 9:57 AM Saturday, July 08, 2006 1:17 PM Reply | Quote 0 Sign in to vote Hi, I'm looking for a solution for a same kind of problem. I have a visual stu
times are UTC Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Designed by ST Software for PTF.