Missing assembly error that I can't figure out

  • Thread starter Thread starter Jeff Green
  • Start date Start date
J

Jeff Green

Hello all,

Can anyone explain why I keep getting the following error?

C:\Project\CalcServer\CalcServer.cs(4): The type or namespace name
'Http' does not exist in the class or namespace
'System.Runtime.Remoting.Channels' (are you missing an assembly
reference?)

I have the following using statements at the begining of the file.

using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

It's copied directly from an example Programming C# (O'Reilly).

I've also noticed that 'System.Runtime.Remoting.Channels.Tcp' doesn't
exist either.

Thanks...Jeff
 
The "using" statements are merely a convenience to eliminate typing long
namespace strings, they do not pull in the requisite assemblies. You must
add the assembly references by going to the Project menu and choosing Add
Reference.
Hope this helps,
Gary
 
Back
Top