Passing an object reference back from a COM+ hosted object
- From: "Nicholas Palmer" <nick@xxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 15:42:58 -0800
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
.
- Prev by Date: Access interprocess static variable
- Next by Date: Re: Remoting Problem
- Previous by thread: Access interprocess static variable
- Next by thread: Remoting Security
- Index(es):
Relevant Pages
|