Error The Specified Module Could Not Be Found Loadlibrary
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 error the specified module could not be found loadlibrary pythondll failed more about Stack Overflow the company Business Learn more about hiring developers or
Loadlibrary Failed The Specified Module Could Not Be Found Regsvr32
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow load library failed with error 126 the specified module could not be found Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up LoadLibrary is failing with module not found error —
Rundll Error The Specified Module Could Not Be Found
possible dependency problems up vote 4 down vote favorite I have been trying to load a 32-bit dll using C++ (from a 32-bit application, on windows 7 64-bit). LoadLibrary returns NULL, and GetLastError returns 126 for "The specified module could not be found." I am passing in the complete address to the LoadLibrary function. I opened the dll in Dependency Walker, which said GPSVC.dll was a missing dependency. automation error the specified module could not be found From the googling I've done, it looks like Dependency Walker often falsely shows this GPSVC.dll as a missing dependency, and there is no 32-bit version of the it, so I don't think that that's the actual problem. I haven't done too much finagling with dlls in the past, so hopefully it's a relatively simple problem that I can learn from. Thanks in advance for any help! dll dependencies x86 64bit loadlibrary share|improve this question asked Feb 15 '11 at 22:15 Ash 1221212 1 Some additional information: When I call LoadLibrary the Visual Studio debugger shows that the dll was loaded then immediately unloaded. I'm fairly certain that this means that the dll was found just fine, but the DllMain function returned false. This seems to point to a dependency issue, but so far I haven't been able to figure anything out. –Ash Feb 15 '11 at 22:22 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote accepted Well I solved my problem, and unfortunately it's a fairly obvious solution. I added the directory that contained my dll to the PATH variable. Apparently dlls don't look in their own directory for their dependencies. share|improve this answer
Start 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
Automation Error The Specified Module Could Not Be Found Vb6
Stack Overflow the company Business Learn more about hiring developers or posting ads with
Loadlibrary Failed The Specified Module Cannot Be Found
us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and regsvr32 getlasterror network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Why http://stackoverflow.com/questions/5010150/loadlibrary-is-failing-with-module-not-found-error-possible-dependency-proble would REGSVR32 not find a DLL that is clearly there? up vote 5 down vote favorite I'm installing a custom application on a brand new Windows 2003 Server. A couple of DLLs need to be added and registered, and I have copied them to the server in the C:\WINDOWS\System32 folder -- which is where they have always been when we've had the application running on Windows NT and 2000. However, when http://serverfault.com/questions/337848/why-would-regsvr32-not-find-a-dll-that-is-clearly-there I try to register them using: regsvr32 c:\windows\system32\nameoflibrary.dll It gives back: LoadLibrary("c:\windows\system32\nameoflibrary.dll") failed - The specified module could not be found. The DLL is however right there. I can see it. If I copy the path to Windows Explorer and attempt to run it, it tells me that I can't run a DLL, so I know it's there. One minor complication is that the DLLs were built in VB5 -- but the VB5 runtime is installed on the server, so this shouldn't be a problem. Any ideas? dll share|improve this question edited Dec 5 '11 at 20:24 Mark Henderson♦ 51.3k21136211 asked Dec 5 '11 at 19:12 Cyberherbalist 2121313 Is this a 64-bit Windows 2003 server? –jscott Dec 5 '11 at 19:15 No, it's 32-bit. –Cyberherbalist Dec 5 '11 at 19:17 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote accepted It could be that a dependant module is missing. You need to look at the getlasterror code to determine why the module was not found. share|improve this answer answered Dec 5 '11 at 20:12 Jim B 21.4k22252 Yep. A module that was supposed to be installed by the main application didn't get installed. Once this was corrected, the two DLLs regist
it couldn’t find the specified module (in the below screenshot softekatl.dll). It might mean it couldn’t find another DLL file http://mcmillan.cx/blog/2013/04/17/how-to-deal-with-the-specified-module-could-not-be-found-errors that the specified module depends on. Unfortunately Windows XP doesn’t seem to include tools to help you work out which DLL is actually the cause of the error… How do I work out which dependency is causing LoadLibrary to fail? Download Dependency Walker and run it on the affected PC. Click the Open button and select the specified the DLL that regsvr32 is having problems loading. Dependency Walker will build a tree of all the dependencies and their dependencies and so on. If a particular DLL is missing you should get an Error opening file. The system cannot find the file specified. error, as shown in the screenshot below. Find that missing DLL, install it the specified module on the machine in a location where Windows will be able to find it and regsvr32 should now be able to register that original DLL you were having a problem with. Where do I find MSVCR70.DLL? Version 7.0 of the Microsoft Visual C Runtime was distributed with version 1.0 of the .NET Framework. You can download it from http://www.microsoft.com/en-us/download/details.aspx?id=96. Install it on the machine and the machine will now have that MSVCR70.DLL file you want. How do I deal with “The install cannot continue because this version of the .NET Framework is incompatible with a previously installed one.” errors? So… you’ve tried to install version 1.0 of the .NET Framework and it failed with the error The install cannot continue because this version of the .NET Framework is incompatible with a previously installed on. For more information, see http://support.microsoft.com/support/kb/articles/q312/5/00.asp. You might think you would visit http://support.microsoft.com/support/kb/articles/q312/5/00.asp but Microsoft changed their website and that URL just redirects to the front page of their Support website. Thank you Microsoft. Your