Error sending HTTP requests on Windows Phone 7.1
I am trying to send an HTTP request to Windows Phone using Visual Studio 2010 Express, but I am getting this error:
Could not find the type or namespace name "HttpClient" (are you missing a using directive or assembly reference?)
Couldn't find HttpClient even though I used using system.windows.httpclient
. I can't seem to get which link is really missing.
Which link do I need to add? Or what do I need to do to fix this problem?
+3
source to share
1 answer
You have two options here.
- You must be using Visual Studio 2012 or higher.
- Replace the HttpClient WebClient or HttpWebRequest class .
You cannot use HttpClient with Visual Studio 2010, without Framework 4.5 support.
0
source to share