I am having this problem...: I have an application that uses System.Net.WebClient class in order to fetch data from a remote location. When I am running the application as standalone, having it as trusted in both firewall & defence+, it works fine. However when I am trying to debug it via Visual Studio 2010, as soon as I am trying to use WebClient class, the whole system hangs and I have to terminate the processes. I tried to disable both fw & d+, but unfortunately I had the same results...
The code where it hangs is the code below:
Dim MyWebClient As WebClient = New WebClient()
Dim ur As New Uri("http://my.testserver.com/")
With .Headers <-- IT HANGS IN THIS LINE!!!!
.Add("Connection", "keep - alive")
AddHandler .DownloadDataCompleted, AddressOf DownloadDataCallback
edit: I have to add that both VS2010 and the debugging process (devenv.exe & IntelliTrace.exe) are trusted files in both fw & d+