How do I troubleshoot "Unable to load DLL ..."

I rolled out an update for my ASP.NET application and started seeing this error on my page that was using foo.dll:

Could not load file foo.dll. The specified module was not found. (Exception from HRESULT: 0x8007007E)

foo.dll is located in my system32 directory and application bin (which are in the path environment variable).

What gives?

0


source to share


3 answers


Anytime you have problems loading assemblies, look for the merge log.



+2


source


It turns out that foo.dll was dependent on another dll that was missing.



I used Dependency Walker to find out which files were missing. When I copied the missing files, the page started working fine.

+1


source


Fuslogvw, as Will said. Often the problem is not that foo.dll was not found, but that if foo.dll dependencies are missing. This is often the C Runtime Library if it is an unmanaged DLL (you need the correct version for the version of Visual Studio you are building with, and the appropriate debug or release version depending on your build configuration).

0


source







All Articles