Hi.. i am studying .Net Remoting
i read from MSDN. but in one step i am facing some confusion..
three steps are required for remoting purpose.
1 - RemoteObject
2 - Host
3 - Client
creating RemoteObject and Host is fine. i understand all the things. it uses Configuration File for both Host and Client Configuration. in Client it uses the following code
public static void Main(){
RemotingConfiguration.Configure("Client.exe.config");
RemotableType remoteObject = new RemotableType();
Console.WriteLine(remoteObject.SayHello());
}
here it is creating Object of RemotableType with new operator. where as this Client application has reference of RemotableType.dll..
when this dll is available locally then what is the purpose of calling SayHello() remotely.??
i ran this client without running server and it still displays me Hello World message.
is this creation of remoteObject with new operator is valid here?????
where as the other method of getting remoteobject is
RObject remoteObject = (RObject)Activator.GetObject(typeof(RObject), "tcp://localhost:9999/RObject");