FTP Task: Unable to send files using “FTP Connection Manager” in Visual Studio 2012

柔情痞子 提交于 2019-12-12 06:28:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!