WPF AP use Side-by-Side COM error (E_NOINTERFACE)

Answered WPF AP use Side-by-Side COM error (E_NOINTERFACE)

  • Wednesday, June 18, 2008 11:37 AM
     
     
    Dear all,

    I have a question about WPF AP use Side-by-Side COM.

    I wrote a COM by ATL, but I don't register it.

    I use it side-by-side by writting manifest file.

    It works fine.

    But when I new a thread to create my COM object, it crash.

    At thread start function

                MyComClass mc = new MyComClass();
                mc.Init();


    Unable to cast COM object of type 'SCOMObjectLib.MyComClass' to interface type 'SCOMObjectLib.IMyCom'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{EA537AF4-2226-4D26-BBC0-9CF3A82749A5}' failed with HRESULT: 0x80004002 (No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))).

     
    This is error message.

    But it
    can be work if I register the COM object.


    Does some one know how to reslove it?

    Best Regards

    Wisenight

All Replies