WebClient client = new WebClient();
When I try do to something like that I get an error
Error 2 The type or namespace name 'WebClient' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
What's wrong?
WebClient client = new WebClient();
When I try do to something like that I get an error
Error 2 The type or namespace name 'WebClient' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
What's wrong?
It is available in WP8 Silverlight projects. I prefer to use
Windows.Web.Http.HttpClient
instead.To use the function you will again use await.
and so on...
You might need to install Microsoft HTTP Client Libraries from nuget