Here Are The Steps To Build The Server:
Add a reference to the System.Runtime.Remoting.dll assembly. Implement a class that derives from MarshalByRefObject. Choose one of the provided channel implementations (TCP or HTTP), and register it using the ChannelServices.RegisterChannel method. Register the class as a Well-KNown Object Using The RemotingConfiguration.registerwellknownServiceType Method. Keep The Server Alive Waiting for Client Requests The Steps for Creating The Client Are As Follows:
Add a reference to the System.Remoting.Runtime.Remoting.dll. Add a reference to the assembly containing the metadata for the remote type, in this case MathLibrary.dll. Register a channel object using the same channel type as the server. Call THE ACTIVATOR.GETOBJECT METHOD, PASSING The Appropriate URL, TO RETRIEVE A Proxy To The Remote Object. Cast The Proxy To The Correct Type And Start Using It As IT WERE The Actual Object.