G
Guest
Hi,
I've being looking for a root-cause for the following problem (currently
have a work-around):-
We have a .NET FileSystemWatcher watching an FTP directory. The FTP
folder/account is on a Windows 2003 Server system (SP1), and the FTP account
is configured with user isolation.
The C# code is very simple, when the watcher triggers a Created event, it
copys the file to another location and then removes the original.
Now, if I manually drop a file into the watched directory, everying works.
If I use FTP Put to place a file there, I get an error saying that the file
cannot be copied as another process is accessing it.
My workaround is a 30 minute delay to ensure the FTP session closes, then
copy the file. It works fine.
Is there a better way of solving this? (e.g. ftp uploads of large files over
slow connections may take longer than 30 mins).
Help appreciated.
The process is failing at the copy stage (using File.Copy() ), reporting an
error
I've being looking for a root-cause for the following problem (currently
have a work-around):-
We have a .NET FileSystemWatcher watching an FTP directory. The FTP
folder/account is on a Windows 2003 Server system (SP1), and the FTP account
is configured with user isolation.
The C# code is very simple, when the watcher triggers a Created event, it
copys the file to another location and then removes the original.
Now, if I manually drop a file into the watched directory, everying works.
If I use FTP Put to place a file there, I get an error saying that the file
cannot be copied as another process is accessing it.
My workaround is a 30 minute delay to ensure the FTP session closes, then
copy the file. It works fine.
Is there a better way of solving this? (e.g. ftp uploads of large files over
slow connections may take longer than 30 mins).
Help appreciated.
The process is failing at the copy stage (using File.Copy() ), reporting an
error