求助 Unable to connect to the remote server
代码如下:
System.Net.WebClient wc = new System.Net.WebClient();
System.IO.Stream stream = wc.OpenRead("http://www.baidu.com");
就这两句 出错的是第二句
提示的错误信息
System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.
我试过的方法:
1.代理设置正确。
2.将firewall禁掉。
3.将Lan设置中的Automatically Detect Settings禁掉。
4.重装.Net Framework。
都不行
有高手来帮忙一下阿?