Jump to content
Xtreme .Net Talk

System.Runtime.Remoting.Channels.Tcp not found


Recommended Posts

Posted

System.Runtime.Remoting.Channels.Tcp

 

i'm trying to follow a tutorial which uses this namespace, but it doesn't 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?

Posted

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. i've been looking at other resources on the net too and it all looks like what i have above. i'm using vs 2003

  • 2 weeks later...
Posted

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.

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...