问题
I inconsistently get the following error when uploading files to a ftp server:
FTP Task: Unable to send files using "FTP Connection Manager"
The port is 21 and it is set to passive mode. The task succeeds 80% of the time it is executed; the occasional failures are random and I'm looking for the best way to troubleshoot the problem.
Is there any way to get more descriptive error information via visual studio?
回答1:
I'm sure you have resolved it by now. But for the future reference, I'll answer it anyway. Here is the duplicate solution (but I would be careful not to set UsePassiveMode = False
. Set this to true).
Another mistake I usually make is I forget to choose "override the file if it already exists in the destination", but of course that depends on the requirement as well.
来源:https://stackoverflow.com/questions/45111971/ftp-task-unable-to-send-files-using-ftp-connection-manager-in-visual-studio-2