File Not found calling C# COM assembly from C++ [modified]
-
I have a c++ unmanaged code (ATL/WTL) from which I need to consume a c# assembly with a CCW (Com Callable Wrapper) Exporting the c# side for COM is straight forward, and when I import it at design time it imports fine and my .tlh file is generated correctly... However when I try to CoCreateInstance at runtime I get 1 of 2 errors.. Either "Class not registered" or "File Not Found" I have run RegAsm on the assembly, with /codebase switch. I have also tried nocodebase switch. The C# assembly is in the same path as my c++ DLL. I have tried it in the path of the parent exe and system32. I have also tried strong naming the file and using GACUTIL to put it in the GAC. Each time, RegAsm goes fine, I check the registry and it all looks ok, but I continually get the "File Not Found" Hresult from CoCreateInstance... In addition to this info... This was working great with VS 2003, but I have recently upgraded to VS2005 and this has started to happen when I did that upgrade. Any ideas?:^) Jake- -- modified at 7:32 Saturday 8th July, 2006