2
1
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?
Thanks Martin, so is there any way to disable this? If not I'll out in a work around in SSIS :) – rmail2006 – 2018-09-17T14:41:47.267
I do not think it's possible to disable this. – Martin Prikryl – 2018-09-17T15:33:31.083
No problem, I'll code around it :), thanks for the help – rmail2006 – 2018-09-18T06:50:42.037