473,398 Members | 2,335 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,398 software developers and data experts.

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 3952
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*******@discussions.microsoft.com> wrote in message news:<D4**********************************@microso ft.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
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...
4
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...
1
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...
2
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...
2
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...
54
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...
5
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....
0
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...
0
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...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.