Having A.dll which is a managed c++ project (no other dependencies)
From B.dll which is a C# project where A.dll is referenced having a Nunit method foo().
If calling the managed c++ code from foo() I got FileNotFoundException:The specified module could not be found. (Exception from HRESULT: 0x8007007E).
I tried to change B.dll to console application and the same exception occurs.
If I’m wrapping the managed c++ code in some other c# class in B.dll and then calling the wrapper from foo() everything works just fine.
The managed C++ is a static class where all of the functions arguments are managed types.
Ideas?
Thanks,
Guy
This is not a managed DLL loading error, you can’t see it in Fuslogvw.exe. I’d guess at an unmanaged DLL dependency for C++/CLI assembly that cannot be located. You’ll be able to see Windows searching for the DLL with SysInternals’ ProcMon utility.