Error connecting to a third-party application via COM: mscorlib Exception from HRESULT: 0x80040202

One particular user gets an exception when connecting an application that I created to a third party application using COM. Connection failed with error:

Source: mscorlib
Message: Exception from HRESULT: 0x80040202

      

This software is great for other users.

Any ideas what might be going on?

The error occurs before the application adds some event handlers to some COM objects from the third party application. However, he is able to successfully create objects.

+2


source to share


1 answer


The error code for this HRESULT is CONNECT_E_CANNOTCONNECT. This is usually returned as a failure code from IConnectionPoint :: Advise because the mount point does not support the underlying interface.



Can you give us even more context in the code that is throwing this exception? Are you creating a component using it, etc.?

0


source







All Articles