Error Connecting to Third Party App via COM: mscorlib Exception from HRESULT: 0x80040202

2

One particular user is getting an exception when connecting an application I created to a third party app using COM. The connection fails with the following error:

Source: mscorlib
Message: Exception from HRESULT: 0x80040202

This software works fine for other users.

Any ideas what could be going on?

The error occurs just before the app adds some event handlers to some of the COM objects from the third party app. It is able to successfully instantiate the objects, though.

c#
.net
com
asked on Stack Overflow Sep 29, 2009 by Dave • edited Sep 29, 2009 by Dave

1 Answer

0

The error code for that HRESULT is CONNECT_E_CANNOTCONNECT. This is typically returned as a failure code from IConnectionPoint::Advise because the connection point doesn't support the underlying interface.

Can you give us some more context into the code that's causing this exception? Are you creating the component, using it, etc ...

answered on Stack Overflow Sep 29, 2009 by JaredPar

User contributions licensed under CC BY-SA 3.0