473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Missing assembly error that I can't figure out

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
--
Jeff Green
Greentrees - All pigs fed and ready to fly
je****@tpg.com.au
Nov 15 '05 #1
2 4681
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

"Jeff Green" <je****@tpg.com.au> wrote in message
news:MP************************@news.tpg.com.au...
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
--
Jeff Green
Greentrees - All pigs fed and ready to fly
je****@tpg.com.au

Nov 15 '05 #2
In article <40**********************@news.newshosting.com>,
gf***@thoughtvector.com says...

Gary,

That did it! You're a genius.

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


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.


--
Jeff Green
Greentrees - All pigs fed and ready to fly
je****@tpg.com.au
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
1
by: Scott Hamlin | last post by:
I am receiving an error while trying to use Crystal Reports with .NET, which I have pasted below. The main problem is this message: File or assembly name CrystalDecisions.CrystalReports.Engine,...
7
by: Steve Richter | last post by:
I am attempting to use the IBM DB2Connection class in my .aspx web page. Using Visual Web Developer 2005 express, I cant figure out how to add a reference to a project. heck, I cant figure out...
6
by: ewolfman | last post by:
Hi, I've read many posts in several news groups, but can't figure out how to publish my website. The specific error I'm getting (on the "successfully published website") is "Could not load the...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
5
by: rcoco | last post by:
Hi, I have this program that I'm trying to compile and it flags this error: The type or namespace name 'src' could not be found(are you missing a using directive or an assembly reference?) I've...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.