The FTP server caches the file handles of the deleted files that were previously fetched preventing their deletion. After a minimum cache sweep period, the file finally gets deleted when the cached file handle is closed. If the same file is put on the server before this minimum sweep interval has elapsed, the Put command fails with the “Access is Denied” error message.
After deleting the file, wait for a short time (about 30 seconds), and then copy (put) the new file to the FTP server.
Rename the file that is to be deleted, copy the new file to the FTP server, and then delete the renamed file.
***Information provided by Sylvain Perez***
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Xceed admin (had 1740 views)