I am using FtpWebRequest, asyn method to upload files, but when I try to break the network(like Network cable unplugged), the file transfered part(maybe 20%) in win ftp server is uncountable size(cannot get size), so I can't resume this upload.
But when i try to reupload again call the:
Request.EndGetRequestStream(ar)
, it has an exception and the file part in server is countable again.
I think maybe some stream.close() issues cause the problem.
My question is how to resume upload when the network is reconnected? Thanks!
After I split filestream to upload seperately(close requeststream every split), still find the file was locked by win server IIS after network breaks.
Any suggustion?