当我使用这样的代码时:
System.Net.WebClient objClient = new WebClient();
string url = "http://google.com";
objClient.DownloadString(url);建立连接需要几秒钟的时间,然后开始下载。我昨天重新安装了Windows,这个问题开始出现了。此问题似乎在我重新安装Windows时发生。
有人知道为什么会出现这个问题吗?谢谢大家。
发布于 2010-05-17 22:35:53
查看您的Internet Explorer设置(工具- Internet选项-连接- LAN设置)中是否配置了代理。一定要检查一下Automatically detect settings。
发布于 2010-05-17 22:36:41
也许你已经在你的Internet Explorer中启用了自动代理配置?由于您没有专门设置WebClient对象的代理设置,因此它会查看Internet explorer设置。
https://stackoverflow.com/questions/2849893
复制相似问题