473,848 Members | 1,788 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 4696
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
5774
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
7129
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
3130
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
3837
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
10968
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
2853
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
3968
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
4905
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
3323
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
9893
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
11001
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10722
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
10348
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7894
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5735
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
5919
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3175
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.