I tried this code
WebClient wc = new WebClient();
wc.Proxy = null;
but I get System.Net.Webclient does not contain definition for proxy
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is
System.Net.WebClientdoes not contain a definition for proxy.If you check MSDN you see that the webclient does not have a property named Proxy.
If you check the MSDN page for the normal webclient (non-Silverlight/non-phone) version you see the Proxy property. But that is not included in the stripped down version for the windows phone, because in your Phone you cant set a proxy.
So no need to set it to null. Since the property doesn’t exist. Just remove that line.