Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.6k views
in .NET FTP by
I am downloading large files and I consistently get the following exception:

"The process cannot access the file "C:\test.zip" because it is being used by another process."



It usually happens around 16-30 mb into the download... though sometimes it goes longer.

I am only running my ftp program. No other program or thread is interacting with this file (that I am repsonsible for anyway). Any ideas?

3 Answers

0 votes
by (162k points)
Can you post a cutdown program that exhibits the problem? We'll test it out.

I am downloading large files and I consistently get the following exception:

"The process cannot access the file "C:\test.zip" because it is being used by another process."


0 votes
by
I was using Get(string, string). When I changed it to Get(stream, string), the socketexception was correctly thrown. I am assuming the socketexception was the reason for the other exception, but somehow it was not correctly thrown.



The code I used was directly from the demo. I did add an "ftp.Resume()" command.


Also, I was wondering if the Resume was correctly implemented for Get(stream, string). For the Get(String, string), the code sets teh resumeMarker variable. However, it does not get set in the Get(stream, string). This results in a Restart(0) getting called instead of Restart(file size).
0 votes
by
Nevermind the second thought, it seemingly resumes correctly.

Categories

...