> So I am getting the error when I try and execute the oLibrary.Version
> method.  The o.GetLibrary() call executes but I'm not sure
> its returning
> anything useful.

In the debuggger, if you hover your cursor over the oLibrary variable after
you execute this line:

        oLibrary = o.GetLibrary()

(or put a watch on it), does the debugger confirm that oLibrary is a
TransparentProxy?

> Also, the CTRL.Library object inherits from
> MarshalByRef so I know it can be remoted.   I didn't think
> that I had to
> setup channels or sinks when using Component
> Services/EnterpriseServices.  I know how to do this when
> doing remoting
> but I'm not sure how it would work in the Component
> Services/EnterpriseServices configuration.

You answered the first question I had, was wondering which direction the
error applied to.  For example, if you were setting a property, instead of
getting it; and you were passing a reference to an object on the client
side, and in the setter (over on the server), the setter tried to invoke a
method/etc - this would be a callback attempt from server-to-client.  Ditto
an attempt to register for an event.  So I was wondering if it was the lack
of a server channel on the client that was the glitch.  But if you're just
calling a getter, then that rules that out.

You mentioned that CTRL.Library extends MBRO, but is that class marked
public?

Nothing's jumped out at me, but I don't use COM+ much/at all in recent
years.  But you ruled out the one common issue I was thinking of...

-Mike
Bear Canyon Consulting LLC
http://www.bearcanyon.com
http://www.pluralsight.com/mike

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to