System.DLLNotFoundException when a DLL exists

I get the following error when loading a DLL into our program, which causes the following error:

Unable to load DLL 'xxx.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F) 

This does not make sense to me because the DLL exists and is built into our installer every time we make changes to our code. This DLL has not changed for several months, and it only started to happen about a week ago from our newly installed copies. Any ideas? This project is an unmanaged C ++ project that is called from a .NET 3.5 application.

+4
source share
2 answers

The error does not mean that the DLL does not exist; he says that the DLL does not have a procedure call that you are trying to do. This most likely means that there is another DLL in the search path with the same file name as the older version.

Are you installing the DLL in the same folder as the calling application?

+3
source

Probably one of the xxx.dll dependencies xxx.dll not found. You can check your dependencies using DUMPBIN /dependents xxx.dll and enter additional information using Dependency Walker to see which ones may be missing or inappropriate on the system under test.

+4
source

All Articles