I've created a unit test (MS Unit Test), which uses COM Dlls for specific operations. If these COM Dlls are registered (via Regsvr32.exe) everything works fine. But if I try to run my test using these COM Dlls as registration free COM Dlls ( side-by-side assembly), the used COM Dlls can't be found
System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154. Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
I've created a manifest file for the test Dll (testProjectAssemblyname.dll.manifest). The manifestfile is embedded. The used COM assemblies are located in the test output path. I'm not quite sure, if this setup is correct.
Switching "AnyCPU" to X86 or x64 builds didn't help.
If I'm running my application by using a manifest file and no registered COM Dlls, everything works fine.
Any ideas?