A .Net remoting question
-
I am a newcomer to .Net Remoting. After I had read some articles at CodeProject,I did som work by my self. I created three project:Server.exe,Client.exe,RemotableObject.dll.Here is my Client code:
using RemotableObject; ... private MyRemotableObject remoteObject; ... TcpChannel m_TcpChan = new TcpChannel(); ChannelServices.RegisterChannel(m_TcpChan); RemotingConfiguration.RegisterWellKnownClientType( typeof(MyRemotableObject),"tcp://localhost:8080/MyRemotableObject"); remoteObject = new MyRemotableObject(); remoteObject.Method1();
When I running the Client, it raise "System.IO.FileNotFoundException: File not found:RemotableObject".So I put RemotableObject.dll in the Client.exe's folder,and it's all well. My question is: Does the RemotableObject.dll must be deployed together with every client? If it must,then what role does the RemotableObject.dll acts on the client? If it doesn't ,what additional work should I do to let RemotableObject.dll apart from the client?