I've been sent here from the nomral Stack Overflow with my issue

  • TL;DR : Does IIS FTP service lock files while said files are being accessed, specifically downloaded, by an FTP client?

So I've got an FTP server up and running. My Server application, SSIS, copies files over into this folder and then the client will try and download them.

I've now hit an issue where my application can't overwrite the file as it already exists. I'm copying the file using a File System Task with Overwrite enabled. This usually works most of the time but I'm now faced with the above issue where it is saying it can't copy the file as it already exists.

I've ruled out that the SSIS application may be copying a file twice resulting in a partial copy. This leaves me with a guess that the file may be locked, temporarily by the FTP service whilst the client machine is trying to download said file.

Is it possible that IIS FTP in windows server 2012 may be locking the file whilst being downloaded?


Yes, IIS locks the files, when you are downloading them.

It's basically a standard Windows behavior, that files are locked while being worked with.

| improve this answer | |
  • Thanks Martin, so is there any way to disable this? If not I'll out in a work around in SSIS :) – rmail2006 Sep 17 '18 at 14:41
  • I do not think it's possible to disable this. – Martin Prikryl Sep 17 '18 at 15:33
  • No problem, I'll code around it :), thanks for the help – rmail2006 Sep 18 '18 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.