sde Posted September 5, 2003 Posted September 5, 2003 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? Quote codenewbie
Administrators PlausiblyDamp Posted September 5, 2003 Administrators Posted September 5, 2003 You need to add a reference to System.Runtime.Remoting Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
sde Posted September 5, 2003 Author Posted September 5, 2003 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 Quote codenewbie
sde Posted September 5, 2003 Author Posted September 5, 2003 my mistake.. you're right .. the key words to your advice is "add reference" .. i thought i could just get away with calling it. thanks! Quote codenewbie
rdufresn Posted September 19, 2003 Posted September 19, 2003 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. Quote
Administrators PlausiblyDamp Posted September 19, 2003 Administrators Posted September 19, 2003 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rdufresn Posted September 19, 2003 Posted September 19, 2003 Ah! I too read the post incorrectly. It works now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.