简体   繁体   中英

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#.

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.
Is there any limit for webclient to download the file ? Anyone know what could be causing this?

Thanks, Kavin.S

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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