webClient DownloadData套接字异常

时间:2014-01-02 15:40:58

标签: c# azure azure-web-sites

我使用webClient.DownloadData从Azure网站从Google云端硬盘下载文件,我收到错误:

SocketException An attempt was made to access a socket in a way forbidden by its access permissions 74.125.128.102:80
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

代码:

using (var webClient = new WebClient())
                {
                    pdf = webClient.DownloadData("drive.google.com/something.pdf");
                }

它适用于局部但不是天蓝色。

我正在免费使用Azure网站进行测试。

0 个答案:

没有答案