Remote Client Application
The Client application for calling Remote Object's method in VB.Net is pretty simple and straight forward. The .NET Remoting system will intercept the client calls, forward them to the remote object, and return the results to the client. The Client Application have to register for the Remote Type also.
Here in the Client application in VB.Net , creating an instance of the Remote Type, RemoteTime Object , and call the method getTime() . Aditionally it uses the configuration file Client.exe.config for the communication information for the Remoting Framework.
Copy and paste the above VB.Net source code into a file and save it as Client.vb.
We have to create additional configuration file to provide the communication information to the Client Object. The configuration file is a an XML structured file. We can specify the Remote Type , Channel , port for communication etc. through the configuration file .
Click here to download Client.exe.config .
Compile the class file Client.vb using the command-line tools that ship with the .NET Framework SDK.
At the command prompt in the directory in which you saved the file, type the following command:
vbc /r:RemoteTime.dll Client.vb
After you compile the Client.vb , you will get a file called Client.exe in the directory which you saved the source file