Passing an object reference back from a COM+ hosted object

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi all,

I've got a strange problem. I'm trying to do a simple test of hosting a
VB.NET application in Component Services.
I've written a simple server class that inherits from
EnterpriseServices.ServicedComponent and it has a simple method that returns
a string. So I've got this built successfully as well as a simple client
that calls this serviced component. I can see new
application in the Component Services administrative tool when I'm running
and that all works. So, now here is where I am
having a problem. I would like to have the server class return a reference
to another object that it will create when a method of the server class is
called.
The object that this method creates already derives from MarshalByRef so I
should be ok there. So I added a method to the server class that
creates an instance of this object and passes it back. Then I updated my
client to call this new method. The call to the new method worked,
but when I try and reference a property of the object that I just got passed
back, I get the following error :


An unhandled exception of type 'System.Runtime.Remoting.RemotingException'
occurred in mscorlib.dll

Additional information: This remoting proxy has no channel sink which means
either the server has no registered server
channels that are listening, or this application has no suitable client
channel to talk to the server.


So, what am I doing wrong here ?

Thanks,
Nick


.



Relevant Pages

  • Passing an object reference back from a COM+ hosted object
    ... I've got a strange problem. ... VB.NET application in Component Services. ... I would like to have the server class return a reference ... This remoting proxy has no channel sink which means ...
    (microsoft.public.dotnet.framework.component_services)
  • Passing an object reference back from a COM+ hosted object
    ... I've got a strange problem. ... VB.NET application in Component Services. ... I would like to have the server class return a reference ... This remoting proxy has no channel sink which means ...
    (microsoft.public.dotnet.framework.remoting)