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

Advertisement

Sitakanta
Joined:
Posts:
2
Location:
Bangalore, India

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

Hi,
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...

err.JPG

  • err2.JPG (13.36 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,614
Location:
Prague, Czechia

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

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.

Reply with quote

Advertisement

You can post new topics in this forum