Click to See Complete Forum and Search --> : Problem with remoting and namespaces


Eltsinaarth
December 29th, 2002, 05:49 AM
Hi, I'm kinda new to .NET and C#. The current problem is I can't get this "Remote Hello" example working because of namespaces.

On the beginning of code I have:

using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

And the problem is with tle last line - every time I try to compile it, I get an error stating:
The type or namespace name 'Tcp' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?)

Could any1 give me hint what's wrong? (is it something with .NET configuration? i've made full installation so nothing should be missing).

Thanks in advance

TheCPUWizard
December 29th, 2002, 09:46 AM
The computer is giving you the answer. You have not added the reference to your assembly. :)

Right click on the project, "Add Reference..." and add System.RunTime.Remoting

When you use system features that are not included by default, you must explicitly add the reference to the project.

Eltsinaarth
December 29th, 2002, 04:23 PM
Thanks