Copying files to remote side failed.The process cannot access the file because it is being used...
I'm using .NET Assembly of WinSCP(5.9.6.7601) for bulk file uploading to a ftp server.
As my file count is huge (approx 25K per day) I'm using multiple instances of the same applications for upload simultaneously. However the configuration contains the source & destination details separate for each of the application instances.
Though I was not getting the error frequently, after few random uploads the session terminates with an error message- (Not capturing the details for exception stack in log file)
"Copying files to remote side failed.
The process cannot access the file because it is being used by another process."
While running the FTP upload application there is no other application using the upload files so there is no way file is inaccessible, as per error message. Also same time other instances of the application keep uploading the files without any issues.
Not getting the solution.. Please help...