Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

# Topic review

DomBurf

## Re: having the same problem, what exactly was the fix, please

The file was open and WinSCP couldn't copy the file. I had to close the file before the copy.
lord_steph

## having the same problem, what exactly was the fix, please

i get the same exact error - winscp copying to remote side failed
DomBurf
This seems to be working now.
DomBurf
I've just tried this again and it's now working. Let me test again on Monday just to be sure that there's actually a problem and update accordingly.
martin

## Re: Error transferring file Copying files to remote side failed

A log file from FileZilla for a comparison would be helpful too.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. 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.
DomBurf

## Error transferring file Copying files to remote side failed

I'm automating an upload of our web site from our local build server to our Azure remote hosting. I'm using the following commands to do this.
option batch abortoption confirm off option transfer binaryopen ftp://myusername:mypassword@domain/site/wwwrootcd /site/wwwrootlssynchronize remote -delete "E:\buildfolder" /site/wwwrootclose exit

However I'm getting the following errors:
Error transferring file web.config.
Copying files to remote side failed.
Access is denied.

I have tried running my script from the build server command line and from the build itself and it fails for both. I can upload the files manually via FileZilla though. I would prefer to make this a build task rather than a manual one. Any ideas?