System.Runtime.Remoting.Channels.Tcp not found

sde

Well-known member
Joined
Aug 28, 2003
Messages
160
Location
us.ca.fullerton
System.Runtime.Remoting.Channels.Tcp

im trying to follow a tutorial which uses this namespace, but it doesnt appear to exist.

when is type: using System.Runtime.Remoting.Channels.

i get no drop down for any other options.. and when i manually just force it in, i get a compile error that the tcp methods dont exist.

can anyone help?
 
Code:
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
error:
C:\Visual Studio Projects\Server\Class1.cs(4): The type or namespace name Tcp does not exist in the class or namespace System.Runtime.Remoting.Channels (are you missing an assembly reference?)

thanks, but i am. ive been looking at other resources on the net too and it all looks like what i have above. im using vs 2003
 
my mistake.. youre right .. the key words to your advice is "add reference" .. i thought i could just get away with calling it.

thanks!
 
Remoting

I too have the same problem. I copied an example right out of a C# book, and it does not compile with my 2003.NET.

The lines in question are:

using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

I am actively looking at the problem.
 
Just adding the using ..... clause is a shorthand for how to specify classes in code

i.e. if i put
using System.IO at the top of a file I can do things like

StreamReader sr = new StreamReader();

rather than

System.IO.StreamReader = new System.IO.StreamReader

you still need to add a reference to the correct dll though.
 
Back
Top