c# error unable to load dll
here for a quick overview of the site Help Center Detailed answers to any questions you might have c# unable to load dll module could not be found Meta Discuss the workings and policies of this site About Us Learn
C# Unable To Load Dll The Specified Module Could Not Be Foundmore about Stack Overflow the company Business Learn more about hiring developers or posting ads with us unable to load dll c# dllimport Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like unable to load dll the specified module could not be found. (exception from hresult: 0x8007007e) you, helping each other. Join them; it only takes a minute: Sign up Unable to load dll file - exception 0x8007007E up vote 2 down vote favorite I'm working with National Instruments Measurement Studio in C#, and I've come across a bit of a problem in deploying my application to a particular computer (running Windows 7).
The Specified Module Could Not Be Found Exception From Hresult 0x8007007e In C#I've tried asking on the National Instruments forums, but haven't got any solutions yet - could anyone here give me some tips? Essentially, I have deployed this application several times on a number of computers, but in this particular case I receive an error when running the program - "System.DllNotFoundException: Unable to load DLL 'nianlys.dll': The specified module could not be found. (Exception from HRESULT: 0x80070007E) I have ensured that nianlys.dll is present in C:\Program Files (x86)\National Instruments\Shared\Analysis. I have ensured that libiomp5md.dll and LV110000_BLASLAPACK.dll, the files from mkl.msm (nianlys.dll has a dependency on mkl.msm), are present. nianlys.dll also has a dependency on nimetautils.msm, but I'm not sure which dlls are included in this. I have ensured the program is installed by running the setup.exe as an administrator (as opposed to running the .msi that is generated, see here). I have ensured the computer in question is up to date with updates to the .net framework via windows update. I have tried reinstalling the program several times, so
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 the company Business Learn more about hiring error 1 the specified module could not be found. (exception from hresult 0x8007007e) developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question visual studio dependency walker x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Unable To Load Dll The Specified Module Could Not Be Found Dllimportit only takes a minute: Sign up Error: Unable to load DLL '.dll' : The specified module could not be found. (Exception from HRESULT: 0x8007007E) - What is this error? up vote 2 down vote favorite The Situation: I'm trying http://stackoverflow.com/questions/21384067/unable-to-load-dll-file-exception-0x8007007e to run CharLS JPEG-LS Compression algorithm implementation There is source code in the site about where you can download a C# VS 2010 Solution. In the Solution there are, 2 C# Class Library Projects, 1 Unmanaged VC++ project and 1 C# Console App. The console App calls one of the class libraries, `using CharLS;', and that particular library references the unmanaged VC++ project. The console application works perfectly on debug mode. The Problem: But when I compiled the console http://stackoverflow.com/questions/12899293/error-unable-to-load-dll-dll-the-specified-module-could-not-be-found-exc app for "Release", and ran the .exe (executable file), when a particular function is called during the process, it gives me this error: Error: Unable to load DLL 'CharLS.dll' : The specified module could not be found. (Exception from HRESULT: 0x8007007E) I've also tried to create another project and reference the class library from there, but I get the same error. I've tried reading other solutions for this over the net but they have not helped me. c# .net reference error-handling share|improve this question edited Oct 15 '12 at 17:26 asked Oct 15 '12 at 15:49 user919789 831516 3 One of CharLS.dll dependencies is not found - possibly because of changing current directory. Learn Dll dependencies in the Dependency walker dependencywalker.com –0123456789 Oct 15 '12 at 15:56 Have you checked whether the file CharLS.dll exists on the path on your development machine? If it does, then deploy it with the release software (also on the path). Alternatively, is it a registered file (regsvr32)? If so, deploy it and register it. –Vicki Oct 15 '12 at 15:57 You never mentioned "and I made sure that the DLL was copied to the bin\Debug directory". So start there first. SysInternals' ProcMon utility can show what other DLL might be missing. –Hans Passant Oct 15 '12 at 17:29 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote Some of the rea
visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 12 of 12 Thread: [RESOLVED] unable to load unmanaged dll Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Nov 17th, 2005,06:33 PM #1 mchahn View Profile View Forum Posts Thread Starter New Member Join Date Nov 2005 Posts 4 [RESOLVED] unable to load unmanaged dll I have code to call a DLL that I wrote in C (see end of message). This code has worked fine for months. I reloaded my OS and installed a fresh vs2005 rc and now I'm getting a System.DllNotFoundException. It also says: Unable to load DLL 'copy.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) My DLL is in my working directory just as it was before. My project setup has not changed and the working directory is specified correctly. What could have changed to cause this error? Code: [DllImport( "copy.dll", CharSet = CharSet.Unicode )] public static extern int BackupClose( long hash1, long hash2 ); Reply With Quote Nov 17th, 2005,09:03 PM #2 popskie View Profile View Forum Posts Fanatic Member Join Date Jul 2005 Location In my chair Posts 666 Re: unable to load unmanaged dll i guess its your file system has change. Last edited by popskie; Nov 17th, 2005 at 09:08 PM. http://docs.msdnaa.net/ark_new3.0/cd...plications.htm W3School C# Impersonation Screen Capture Bohol Dictionary MSDN Search Engine C# Port Programming Creating sharepoint web part using C# Active directory Reply With Quote Nov 17th, 2005,09:18 PM #3 penagate View Profile View Forum Posts Lurker Join Date Jan 2005 Location Everywhere Posts 13,651 Re: unable to load unmanaged dll According to MSDN, If you provide no path, the DLL must be in the current path at run time But if as you say the working directory is specificed correctly, then I'm not sure why it doesn't work. You may need to try putting it in the \System32 folder. Reply With Quote Nov 17th, 2005,11:36 PM #4 mchahn View Profile View Forum Posts Thread Starter New Member Join Date Nov 2005 Posts 4 Re: unable to load unmanaged dll I tried putting a copy everywhere I could think of, including system32. This is extremely frustrating. Reply With Quote No