Synchronizing All files from Server
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!
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);
Hello @cma93 , do you have any example for synchronizing all files from server?