views:

32

answers:

2

hi all.

when i use some code like this:

System.Net.WebClient objClient = new WebClient();
string url = "http://google.com";
objClient.DownloadString(url);

it takes some seconds to connection stablished and downloading starts... i reinstall my windows yesterday. before yesterday i havent this problem. some times when i reinstall my windows this problem occures.

does anyboddy know why this problem occures?? thanks all and sorry for my bad english....

A: 

See if you have a proxy configured in your Internet Explorer settings (Tools - Internet Options - Connections - LAN Settings). Make sure you got Automatically detect settings checked.

hmemcpy
thanks man. i do this and it works perfect. more attractive is when i uncheck "Automatically detect settings" again no change where made and with last configuration so i have best performance...thanks again
backdoor
Great! Glad this is working for you! :)
hmemcpy
A: 

Maybe you have automatic configuration of proxy enabled in your Internet Explorer? Since you don't specificially set the proxy settings of your WebClient object, it looks at Internet explorer settings.

naivists