views:

342

answers:

2

I'm seeing the following exception in my managed (C#) app calling an unmanaged assembly:

Caught:System.IO.FileLoadException 'A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)'

What does this HRESULT mean, and where should I start in diagnosing this?

+1  A: 
Egor
Turns out the error was due to the missing assembly manifest.
Kragen
+1  A: 

alternatively the DLL you try to load is trying to load a missing DLL, check with DEPENDS.EXE on the DLL.

Anders K.