How to invoke one remote object method from another remote object.

How to invoke one remote object method from another remote object.

Post by CeasarSal » Thu, 01 May 2003 18:04:39



I have two remote objects that both reside in separate assembly.  One
of the singlecall remote object (BizSvc class) is kinda business
service object that will make use of another singleton remote object
(NotificationSvc class) for notification advertising.  The client will
also be using the NotificationSvc for subscribing to any advertised
event.  It's okay for a client to use the NotificationSvc remote
object.  But how can the BizSvc gets the proxy of the NotificationSvc
since that it is not allowed to register a wellknow client object in
the BizSvc as it had been registered as the wellknowtype service.
Calling RemotingConfiguration.Configure in BizSvc failed and i think
in this case is totally absurd.

Any help would be appreciated.

 
 
 

1. Remote object method call to return another remote object

I am receiving a System.InvalidCastException with a
message of 'Return argument has an invalid type'

When running code from the client I can successfully
create an instance of Class1 on the server, however when I
make the method call GetClass2 I get the above error.  I
want both of these to be CAO's because they have state
that pertains to the server machine.  Is it possible for a
CAO to have a method that can return a reference to
another CAO that needs to be created by the first CAO?  Am
I making any sense here?

Class1 : Inherits MarshalByRefObject
   Public Function GetClassTwo() As Class2
      Dim oRetVal As Class2 = New Class2()
      Return oRetVal
   End Function
End Class1

Class2 : Inherits MarshalByRefObject
   'Properties
   '...

   'Methods
   '...
End Class1

2. URL Parameter not transmit

3. Remote object returning a reference to a different Remote Object

4. PocketPC versus Palm

5. NO CONNECTION COULD BE MADE error when remote object passed to other remote object

6. Atari Explorer

7. First method call on remote object takes quite a long time or even times out

8. TCP Failure - OS9 on Allen Bradley Copro

9. How to invoke C++ class member function from C# remote object?

10. How to invoke a remote COM object from C#?

11. MethodBase.Invoke on remote object with reference parameters

12. how to update remote server's form from the remote object?

13. SoapSuds and remote objects that returns remot objects