I get the exception when running this code
the exception says "requested service not found"
VB Code:
Dim test As IRemoting 'Create the actual object 'NOTE... the client is working with an interface, not an implementation! test = CType(Activator.GetObject(GetType(IRemoting), _ "tcp://localhost:6000/RemotingServer"), IRemoting)
the server config file looks like this:
VB Code:
<system.runtime.remoting> <application name="RemotingService"> <service> <wellknown mode="Singleton" type="RemoteClassLib.RemoteObject,RemoteClassLib" objectUri="RemoteObject"/> </service> <channels> <channel ref="tcp" port="6000"/> </channels> </application> <debug loadTypes="true" /> </system.runtime.remoting>
and the server code is like this:
VB Code:
RemotingConfiguration.Configure("RemotingServer.exe.config") Console.WriteLine("Server configuration loaded!") Console.WriteLine(".NET Remoting Server Started!") Console.WriteLine("Press any key to end the server...") Console.ReadLine()
So what can be the problem?? the server loads the channes, set the protocol and register the remoteobject class!
The client create an instance SAO by using the activator object...
help!
Henrik
