.net remoting Authentication failed error

  • Thread starter Thread starter Vinki
  • Start date Start date
V

Vinki

Hello Everyone,

I am having hard time with .net remoting. I keep getiing this error
"Authentication failure". My server has this code in it

int portNum;
// TODO: Add code here to start your service.


portNum =
Int32.Parse(ConfigurationManager.AppSettings["port"].ToString());
TcpChannel channel = new TcpChannel(portNum);
ChannelServices.UnregisterChannel(channel);

RemotingConfiguration.RegisterWellKnownServiceType(typeof(ProcRunner),
"HelloWorld", WellKnownObjectMode.Singleton);
//************************************* TCP
*************************************//
ArrayList procList = new ArrayList();
runner = new ProcRunner();
procList = runner.GetProcesses();


my client has this code in it.

string portNumber;
TcpChannel chan = new TcpChannel();
ChannelServices.RegisterChannel(chan, true);
portNumber = "9886";
runner = (ProcRunner)Activator.GetObject(typeof(ProcRunner),
"tcp://" + machineName + ":" + portNumber + "/HelloWorld");


Please let me know if I am doing anything wrong.

Thanks in advance
 
Back
Top