WPF AP use Side-by-Side COM error (E_NOINTERFACE)
-
Wednesday, June 18, 2008 11:37 AMDear 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- Moved by Peter RitchieMVP, Moderator Thursday, June 19, 2008 8:08 PM off-topic
All Replies
-
Thursday, June 19, 2008 8:08 PMModerator
For questions and discussions relating to WPF, please see http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=119&SiteID=1
http://www.peterRitchie.com/blog- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Moderator Friday, May 11, 2012 3:25 AM
Friday, May 11, 2012 3:25 AMModerator
This thread was moved into the Off Topic forum. I can move it into a specific forum for you if you want.
Thanks!
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Moderator Friday, May 11, 2012 3:25 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Moderator Friday, May 11, 2012 3:25 AM