闲着没事,打算写一个通过代理IP刷新网页浏览量的东东 最开始使用的是 WebProxy myProxy=(WebProxy) myWebRequest.Proxy; 使用此种方法就会报如题的错误 于是谷歌了下,修改成了下面这种方式 string url = this.txtURL.Lines[this._urlIndex]; HttpWebRequest myWebRequest = (HttpWebRequest)WebRequest.Create(url); WebProxy myProxy = new WebProxy(this._ipList[this._ipIndex].IP, int.Parse(this._ipList[this._ipIndex].Port)); myWebRequest.Proxy = myProxy; myWebRequest.GetResponse(); if (this._urlIndex == this.txtURL.Lines.Length - 1) { this._urlIndex = 0; this._ipIndex++; } this._urlIndex++; 参考:http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/19e8a318-cdb1-4681-962b-381563e27125/