Topic "Copying files to remote side failed.The process cannot access the file because it is being used..."

Author Message
[View user's profile]

Joined: 2017-09-14
Posts: 2
Location: Bangalore, India
I'm using .NET Assembly of WinSCP( 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...
err.JPG (21.38 KB)

Description: (none)


err2.JPG (13.36 KB) Private file

Description: (none)

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License