Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too.
System.Net.WebException: Unable to connect
For service reference within a solution.
Restart your workstation
Rebuild your solution
At this point, I received messsage (Windows 7) to allow system access. Then the service reference was updated properly without errors.