title: CoCreateInstance fails with error "System can not find the file specified"
body: <p>I have .NET COM dll which I am trying to load from unmanaged C++ code. I am trying to do <code>CoCreateInstance</code> from my code which fails with the error "System can not find the file specified". (HRESULT value is <code>0x80070002</code>). Just to see whether there are any problems with the registration of the component , I tried the same piece of code from my tester. There I am able to create the instance correctly. Also, strangely in the debug mode of my main application <code>CoCreateInstance</code> succeeds but fails only in release mode. Does anybody has any idea what could be wrong or how can I find the root cause of the problem? I already opened the COM dll in dependency walker and it didn't show any errors. Any help would be greatly appreciated.</p>