ja********@gmail.com wrote:
When I try to compile the following program on Visual Studio 2005 Pro,
the namespace System.Runtime.Remoting.Channels.Tcp is not recongized by
the compiler. (The "Tcp" part is highlighted.) And I get the error
message:
Error 1 The type or namespace name 'Tcp' does not exist in the
namespace 'System.Runtime.Remoting.Channels' (are you missing an
assembly reference?) C:\Documents and Settings\james\My
Documents\Visual Studio
2005\Projects\Try\RemoteObject\helloservicest.cs 7 40 RemoteObject
I am new to .NET. Can some one please help? Thanks a lot!
// file: helloservicest.cs
// compile: csc helloservicest.cs
// Exposes HelloObj in Singleton mode over TCP
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
Hi James
Had exactly the same problem myself recently. You need to add a
reference in your project to System.Runtime.Remoting and it should
recognise the channels then.
Hope that helps.
Dave