473,809 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual studio missing namespace classes/objects?

Hi,
in visual studio 2005 beta, when i type "using System.Web." no code complete
helper pops up. Similarly, when typing "using System.Net." i do not see an
HttpWebRequest in the list that pops up. According to the documentation,
HttpWebRequest should be a part of the System.Web namespace.
I am not sure why this is happening? Can anyone assist?
Jul 21 '05 #1
2 3979
Hi,

Reason u don't got the HttpWebRequest with the using keyword is becoz
HttpWebRequest is a class and not namespace. You use using keyword to import
the namespaces and not the classes

regards
Nishith

"dimension" wrote:
Hi,
in visual studio 2005 beta, when i type "using System.Web." no code complete
helper pops up. Similarly, when typing "using System.Net." i do not see an
HttpWebRequest in the list that pops up. According to the documentation,
HttpWebRequest should be a part of the System.Web namespace.
I am not sure why this is happening? Can anyone assist?

Jul 21 '05 #2
dimension <di*******@disc ussions.microso ft.com> wrote in message news:<D4******* *************** ************@mi crosoft.com>...
Hi,
in visual studio 2005 beta, when i type "using System.Web." no code complete
helper pops up. Similarly, when typing "using System.Net." i do not see an
HttpWebRequest in the list that pops up. According to the documentation,
HttpWebRequest should be a part of the System.Web namespace.
I am not sure why this is happening? Can anyone assist?


I don't have VS 2005, but possible, it's not the problem of VS 2005 at
all.
The same "problems" in VS 2003, so I can try to explain from VS 2003
point of view:
1) HttpWebRequest is the class, not the Namespace => why it should be
shown in list, when you type "using System.Net."? In this pop up only
context meaning info is shown.
Just try to type in any your method System.Net.=> you will see
HttpWebRequest and many other classes too
2) "using System.Web." "doesn't not work"... Let's have a look at
documentation about System.Web Namespace => you will see a list of
classes. Click on any of class of this namespace => you will see the
help about class, scroll to the buttom and have a look at Assembly
info:
Assembly: System.Web (in System.Web.dll)
It means, that you should add reference to this assembly, before using
this namespace.
Adding reference is easy:
- in Solution Explorer open the project's folder
- right click on Reference folder and choose Add Reference
- just add in .NET page the System.Web.dll to your references
now you can try "using System.Web." works.

Best regards, Vladimir.
Jul 21 '05 #3

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

Similar topics

7
10632
by: Forecast | last post by:
I run the following code in UNIX compiled by g++ 3.3.2 successfully. : // proj2.cc: returns a dynamic vector and prints out at main~~ : // : #include <iostream> : #include <vector> : : using namespace std; : : vector<string>* getTyphoon()
4
5219
by: Jan Michalski | last post by:
Does anyone know how to incorporate classes with different namespaces within a project? I have two classes with the same name but different namespace. When I try to add the the second class of the same name the Visual Studio NET IDE blocks my attempt and asks whether I want to overwrite the first class. Which I do not want to do. Compiling is fine outside the IDE.
1
1641
by: Stephen Adam | last post by:
Hi there, I've just started a c# project at work where I cannot use Visual Studio. I am trying to pass variables from one form to another. When I try to create an instance of the sending class in the receiving class I get a "The type or namespace name 'XXXX' could not be found (are you missing a using directive or an assembly reference?)" Error. It seems that even though the sending class resides in the same folder as the receiving...
2
2157
by: Peter Hogg | last post by:
Hello, I recently downloaded 'Microsoft Visual C# 2005 Express Edition Beta'. It's been brilliant, but I couldn't help wondering what more you get when you buy 'Visual Studio .NET'. There must be some considerable advantages of using it considering its price. So I'm asking you what 'Visual Studio .NET' has, that 'Microsoft Visual C# 2005 Express Edition Beta' doesn't have (apart from the fact 'Visual Studio .NET' allows you to program...
2
269
by: dimension | last post by:
Hi, in visual studio 2005 beta, when i type "using System.Web." no code complete helper pops up. Similarly, when typing "using System.Net." i do not see an HttpWebRequest in the list that pops up. According to the documentation, HttpWebRequest should be a part of the System.Web namespace. I am not sure why this is happening? Can anyone assist?
54
6500
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications quickly and easly." I don't agree on what concernes ASP .NET Web Sites in VS2005. All what involves Namespaces in Web sites has been disappeared. I know you can still MANUALLY manage them, but not QUICKLY and EASLY. In a
5
4041
by: Mads Peter Nymand | last post by:
Hi, Background: I'm a Java programmer new to c# and Visual Studio. Problem: When I compile in Visual Studio 2005, the compiler complains, that it can not find several different namespaces. Examples: Error 1 The type or namespace name 'Soap' does not exist in the namespace 'System.Runtime.Serialization.Formatters' (are you missing an assembly reference?)
0
1495
by: saj14saj | last post by:
(If there is a better forum to post this in, please let me know...) I am using Visual Studio 2005. I have a Solution consisting of three projects: * A main project "DiscoverNotes" written in C# * A helper project, set as a /CLR DLL, in C++ * A test project in C# Unfortunately, the using NotesApiAccessor line in the main project gives the
0
7341
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
0
9603
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
10378
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
10391
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
10121
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...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
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
5550
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
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3015
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.