WebDAVClient icon indicating copy to clipboard operation
WebDAVClient copied to clipboard

Synchronizing All files from Server

Open cma93 opened this issue 6 years ago • 2 comments

HI, I tried to synchronize all the files from the server using a loop for downloading all the files and directories but I'm getting:

Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll

the thread is getting getting exit.

I got a list from server then I tried to download the whole list one by one. but it's not working because of this exception. Is there any solution to do it? I want to keep it synchronizing after a fixed interval of time.

And I want to download files with 250 MB maximum size. How can I enable with this project?

Thanks for any kind of Help!

cma93 avatar Jan 01 '20 22:01 cma93

client.Timeout = TimeSpan.FromMinutes(20); <---

Hangs up the connection after 20 minutes.If there are large files in the folder it will end the connection. TimeSpan uploadTimeOut = TimeSpan.FromMinutes(40); Answer: client = new Client(new NetworkCredential { UserName = username, Password = password } , uploadTimeOut);

gawric avatar Sep 11 '20 10:09 gawric

Hello @cma93 , do you have any example for synchronizing all files from server?

cptalpdeniz avatar Jan 08 '23 04:01 cptalpdeniz