简体   繁体   English

使用webclient下载大文件时出现“ WebClient请求期间发生异常”

[英]Getting “An exception occurred during a WebClient request” while download the large file using webclient

I'm getting above error while downloading the 4.5GB size text file using webclient in c#. 在c#中使用webclient下载4.5GB大小的文本文件时遇到上述错误。

WebClient wc = new WebClient();
wc.DownloadFile(DownloadFromURIpath, DownloadTOPath);

I split the file in half, and now it is downloading successfully.There appears to be a problem with importing files over 3 GB. 我将文件分成两半,现在下载成功。导入3 GB以上的文件似乎存在问题。
Is there any limit for webclient to download the file ? webclient下载文件有限制吗? Anyone know what could be causing this? 有人知道是什么原因造成的吗?

Thanks, Kavin.S 谢谢,Kavin.S

尝试wc.DownloadFileAsync()或遵循此处提到的内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM