This error can appear if your connection to the web server passes through a proxy. If that is the case, you can configure your application for the proxy by adding the following to the <configuration /> section of your app.config.
Code:
<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://[PROXY_URL]:[PORT]"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>