time out exception while uploading to FTP [modified]
-
I have developed an application that will upload files to FTP Server as part of its task. Now it works quite well most of the time. But sometimes it gets web exception-called timeout exception - System.Net.WebException: The operation has timed out. at System.Net.FtpWebRequest.GetRequestStream() I searched in google and didn't find any useful help. I saw an attibute (in FtpWebRequest class) called Timeout. I didn't set any value to it, cause i assumed that the default value will do. But now that it gets timeout exceptions , what should i do? 1. Can i solve it Just by setting some high value in this(timeout) attribute ? will it have any performance overhead ? 2. I am using FtpWebRequest. I am sending synchronous calls. Do I need to change it to asynchronous calls or it will be all the same? Is there any relation between time out and Sync/ASync calls ? I am finding no solution to this. So i will be waiting for a help from this forum. thanks -- modified at 13:46 Wednesday 4th July, 2007
Chayan