Namespace problem

S

Saradhi

Hi Group,

This seems a peculiar problem.
I am wrirng this code for creating a Remote Server

Here I am not able to access the namespace.

System.Runtime.Remoting.Channels.Tcp

Wts wrong with this one??

Does MS have removed this namespace? and if yes, whats the actual namespace I should use?

using System.Runtime.Remoting.Channels.Tcp;

using System;

using System.Runtime.Remoting;

using System.Runtime.Remoting.Channels;

using System.Runtime.Remoting.Channels.Tcp;



namespace RemotingSamples {

public class HelloServer : MarshalByRefObject {



public HelloServer() {

Console.WriteLine("HelloServer activated");

}



public String HelloMethod(String name) {

Console.WriteLine("Hello.HelloMethod : {0}", name);

return "Hi there " + name;

}

}

}
 
B

BuddyWork

You need to reference System.Runtime.Remoting and then you
can use the namespace.

Thanks,
-----Original Message-----
Hi Group,

This seems a peculiar problem.
I am wrirng this code for creating a Remote Server

Here I am not able to access the namespace.

System.Runtime.Remoting.Channels.Tcp

Wts wrong with this one??

Does MS have removed this namespace? and if yes, whats
the actual namespace I should use?
 

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