474,042 Members | 57,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Missing assembly error that I can't figure out

Hello all,

Can anyone explain why I keep getting the following error?

C:\Project\Calc Server\CalcServ er.cs(4): The type or namespace name
'Http' does not exist in the class or namespace
'System.Runtime .Remoting.Chann els' (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.Channe ls;
using System.Runtime. Remoting.Channe ls.Http;

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

I've also noticed that 'System.Runtime .Remoting.Chann els.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 4701
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\Calc Server\CalcServ er.cs(4): The type or namespace name
'Http' does not exist in the class or namespace
'System.Runtime .Remoting.Chann els' (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.Channe ls;
using System.Runtime. Remoting.Channe ls.Http;

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

I've also noticed that 'System.Runtime .Remoting.Chann els.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.co m>,
gf***@thoughtve ctor.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\Calc Server\CalcServ er.cs(4): The type or namespace name
'Http' does not exist in the class or namespace
'System.Runtime .Remoting.Chann els' (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.Channe ls;
using System.Runtime. Remoting.Channe ls.Http;

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

I've also noticed that 'System.Runtime .Remoting.Chann els.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
5844
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 can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
1
7142
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, or one of its dependencies, was not found. I have checked the winnt/assembly directory and the assembly is there. I have two versions of the file - 9.1.5000.0 and 9.1.3300.0. I have tried both with no luck. Is there another assembly that...
7
3137
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 how to open a project! so I am trying to use the @assembly directive to point directly to the assembly .DLL that contains the DB2 namespace:
6
3844
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 assembly 'App_Web_vxfyglsm'. Make sure that it is compiled before accessing the page". I checked - The assembly DOES exist in the target web folder.
7
10979
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 this screen below. Please help, thanks in advance... Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...
5
2860
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 tryed to look for a ..dll called src I can't find it. It's only a folder called src that I find. Am I missing something? thank you
0
3979
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 getting the Access denied error. After checking different settings and googling I wasnt able to pinpoint the problem and as a temporary fix I decided to merge the two assemblies into one, my logic being no offending assembly no access denied...
6
4930
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 other pc, and running it I get an error. The Dataset loads properly, but when the button is pushed to view the report I get this error: ************** Exception Text **************
4
3339
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: https://www.sdn.sap.com/irj/sdn/businessobjects-downloads ..NET Utility CR 2008 Merge Modules for the .NET Framework ZIP 74.716 Windows English 12.03.2008 and it states:
0
10538
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10337
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11601
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
12008
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6648
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5406
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4939
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3965
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.