iCeCLoW wrote:
> That is! Thanks Marty, it works, but I donīt
understand why I have to
> add a reference to the System.Runtime.Remoting dll to
only access Tcp
> namespace and I can access Remoting and Channels
namespaces without
> adding it?
>
>
>
Hi iCeLoW,
There are two namespaces you use here, one is
System.Runtime.Channels,
and the other is System.Runtime.Channels.Tcp. Although the
second one is
under the first one from a tree view, they are different for
compiler.
Open the Object Browser by View -> Object Browser, click
the "mscorlib"
assembly which is referred by a project by default, and
expand it. You
can find a node called
"System.Runtime.Remoting.Channels", but no node
called "System.Runtime.Remoting.Channels.Tcp".
That is why you can
access Channels namespace instead of Tcp. You should add
another
assembly which contains the Tcp namespace in order to acess
it. Now you
have to add a reference to System.Runtime.Remoting.dll.
You can use the Object Browser to check whether or not the
namespace you
expected is under System.Runtime.Remoting.dll.
--
Thanks,
Bo
Messenger ID: hbharrypatton hotmail.com
|