Remote Connection want work.
I tried to make a remote connection in c# but faild.
Here is my code, can somebody help me?
string strAppDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);
string strConfDir = strAppDir + "\Remote_Server.exe.config";
RemotingConfiguration.Configure(strConfDir);
I also tried to this way:
TcpChannel channel = new TcpChannel(8080);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SampleObject), "HelloWorld",WellKnownObjectMode.SingleCall);
My Client looks like this:
TcpChannel chan = new TcpChannel();
ChannelServices.RegisterChannel(chan);
SampleObject obj = (SampleObject)Activator.GetObject(typeof(SampleObject),
"tcp://localhost:8080/Helloworld/SampleObject.soap");