开发者

Error using webclient with gmail

开发者 https://www.devze.com 2023-02-26 10:37 出处:网络
This is the code: response = Encoding.UTF8.GetString( objClient.DownloadData(\"https://mail.google.com/mail/feed开发者_Python百科/atom\")

This is the code:

response =
    Encoding.UTF8.GetString(
       objClient.DownloadData("https://mail.google.com/mail/feed开发者_Python百科/atom")
    );

And this is the error (exception) I get: WebClient does not support current i/o operation

what could be the reason for that exception?


I believe the error you're talking about is "WebClient does not support *con*current I/O operations".

This exception is caused when you try to make multiple requests at the same time from a single WebClient instance. If you want to make concurrent requests, create a new WebClient instance.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号