![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Never mind... Found the solution: RInputServer.IServer != RInputClient.RInputServer.IServer !!!! I moved the interface to a separate library, so now I have three projects: - RIServer (exe) - RIClient (exe) - RISContract (dll, contains only IServer) Both server and client need a reference to Contract.dll for using Contract.IServer. so server code changes from: RemotingServices.Marshal(oServer, "RI_Server",Type.GetType("RInputServer.IServer ")) to RemotingServices.Marshal(oServer, "RI_Server",Type.GetType("RISContract.IServer" )) Client code from: Dim oServer As RInputClient.RInputServer.IServer oServer = DirectCast(Activator.GetObject(GetType(RInputClien t.RInputServer.IServer), "tcp://127.0.0.1:1968/RI_Server"), RInputClient.RInputServer.IServer) to Dim oServer As RISContract.IServer oServer = DirectCast(Activator.GetObject(GetType(RISContract .IServer), "tcp://127.0.0.1:1968/RI_Server"), RISContract.IServer) Now RISContract.IServer = RISContract.IServer ![]() Though new challenges appear in this 'exercise' the client does receive the server object ![]() |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |