I have an ATL COM Exe with many interfaces. Every time I try to start my COM server I get an error.

If I use this method:
Code:
CComPtr<IContextManager> icm;
hr = icm.CoCreateInstance(__uuidof(CContextManager));
My HRESULT value is 0x80080005 (Server execution failed)

If I use this method:
Code:
IContextManager *icm;
hr = CoCreateInstance(CLSID_CContextManager, NULL, CLSCTX_INPROC_SERVER, IID_IContextManager, reinterpret_cast<void**>(&icm));
My HRESULT value is 0x80040154 (Class not registered)

I have tried running regsvr32 with the exe and I don't receivie any errors, but I still get the above errors when attempting to run the executable. Also, I do see the values stored in the registry correctly so I am confused as to what might be going on.

Any help is greatly appreciated!

Thank you.