HighTechTalks DotNet Forums  

Passing an object reference back from a COM+ hosted object

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss Passing an object reference back from a COM+ hosted object in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nicholas Palmer
 
Posts: n/a

Default Passing an object reference back from a COM+ hosted object - 12-26-2006 , 04:00 PM






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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.