By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,975 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,975 IT Pros & Developers. It's quick & easy.

namespace name "HttpWebRequest" does not exist in namespace "System.Net"

P: 4
Hi all,
VS 2008 is complaining that HttpWebRequest class is not in System.Net namespace

I have referenced System.Net and have coded "using System.Net"

I think its a setup problem rather than a coding error

The type or namespace name 'HttpWebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) C:\Documents and Settings\user\My Documents\Visual Studio 2008\Projects\WebDAV\WebDAV\WebDAVAppointmentHandl er.cs 25 19 WebDAV

Any help much appreciated
Feb 14 '08 #1
Share this Question
Share on Google+
2 Replies


Plater
Expert 5K+
P: 7,872
What type of project is this?
If you go to the references section in the solution explorer, you should see some namespaces listed.
I have:
System
System.Data
System.Deployment
System.Drawing
System.Management
System.Windows.Forms
System.XML

With just those in the references section, I am able to find HttpWebRequest under the System.Net namespace.

According to msdn, it's supported in all .NET versions:
http://msdn2.microsoft.com/en-us/lib...ebrequest.aspx
Feb 14 '08 #2

P: 4
Aha!!!

I had the system.net and system.security referenced

after adding system (alone) it built successfully

Thanks....
Feb 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.