简体   繁体   English

FTP任务:在Visual Studio 2012中无法使用“ FTP连接管理器”发送文件

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

I inconsistently get the following error when uploading files to a ftp server: 将文件上传到ftp服务器时,出现不一致的错误消息:

FTP Task: Unable to send files using "FTP Connection Manager" FTP任务:无法使用“ FTP连接管理器”发送文件

The port is 21 and it is set to passive mode. 端口为21,并且设置为被动模式。 The task succeeds 80% of the time it is executed; 任务成功执行80%的时间; 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? 是否可以通过Visual Studio获得更多描述性错误信息?

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). 是重复的解决方案(但我要注意不要设置UsePassiveMode = False 。将其设置为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. 我通常会犯的另一个错误是,我忘记选择“如果目标中已经存在,则覆盖文件”,但是当然这也取决于要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM