My mistake is in server object is console application
TcpChannel tcp = new TcpChannel(1234);
ChannelServices.RegisterChannel(tcp,false);
string s = ConfigurationManager.AppSettings["remote"];
RemotingConfiguration.RegisterWellKnownServiceType(typeof(InitialClass1),s,WellKnownObjectMode.SingleCall);
Console.WriteLine("Remoting starting...");
Console.ReadLine();
See in registering I am passing s value( ie whole url from app.config file tcp://localhost:1234/TestRemoting). That is the problem. Actually we have to give a desired name in server object as your wish, but the same name only should be in app.config file.
Here my url is tcp://localhost:1234/TestRemoting
. In this case we need to give TestRemoting
in server object as
RemotingConfiguration.RegisterWellKnownServiceType(typeof(InitialClass1),"TestRemoting",WellKnownObjectMode.SingleCall);
That is only my problem. Now my application is working well..