.net remoting Authentication failed error

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top