Groups | Blog | Home
all groups > dotnet distributed apps > february 2005 >

dotnet distributed apps : Help --> COM + returning ComObject instead of implemented interfac


Garnet2
2/16/2005 3:55:07 AM
Hi,

I can't seem to get a Server Component installed in COM+ to return an
interface that my serviced component is implementing.
It keeps on returning System.__ComObject instead of my interface.

ImyObject o
= (ImyObject)Marshal.BindToMoniker("queue:/new:namespace.myObject");

==> gives me invalid cast

Thanks in advance.

Garnet2
2/16/2005 4:15:03 AM
I have managed to cast the ComObject to my interface, the problem was that
you don't seem to be able to have object pooling and / or JIT enabled.

Anyways, my component still isn't digesting the incoming queus.

[quoted text, click to view]
Garnet2
2/16/2005 5:25:07 AM
Hi, the problem was that the DTC and mq are on different machines.
I need to configure the Listener for my component to listen on the public
queue.

[quoted text, click to view]
Garnet2
2/17/2005 12:11:02 AM
I apologise, the problem was not with Object pooling / JIT at all - it was
actually with the GUID on my interface that the serviced component is
implementing and which I am trying to cast to - got to love COM. :)

Cheers.

[quoted text, click to view]
AddThis Social Bookmark Button