System.Net.WebException: 远程服务器返回错误: (550) 文件不可用(例如,未找到文件,无法访问文件)。

阿里云 防火墙导致  端口号没有开

[2019-02-12 09:55:15,337] 90 [INFO ] -- [FtpServerAshxForm]Http Path is 19021209534310927/
[2019-02-12 09:55:17,387] 116 [INFO ] -- System.Net.WebException: 远程服务器返回错误: 227 Entering Passive Mode (172,19,1,4,199,114).
。 ---> System.Net.Sockets.SocketException: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 47.101.160.82:51058
   在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   在 System.Net.FtpControlStream.QueueOrCreateDataConection(PipelineEntry entry, ResponseDescription response, Boolean timeout, Stream& stream, Boolean& isSocketReady)
   在 System.Net.FtpControlStream.PipelineCallback(PipelineEntry entry, ResponseDescription response, Boolean timeout, Stream& stream)
   在 System.Net.CommandStream.PostReadCommandProcessing(Stream& stream)
   在 System.Net.CommandStream.ContinueCommandPipeline()
   在 System.Net.FtpWebRequest.TimedSubmitRequestHelper(Boolean async)
   在 System.Net.FtpWebRequest.SubmitRequest(Boolean async)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
   在 System.Net.CommandStream.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
   在 System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
   在 System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
   在 System.Net.FtpWebRequest.GetRequestStream()
   在 QmsFrameWork.FTP.FtpServerAshxForm.UpLoadFileToFTP(HttpPostedFile file, String ftpPath, String ftpUserID, String ftpPassword, String usePath, Ftp_File ftpfile) 位置 D:\QMSoft\QmsFrameWork\QmsFrameWork\FTP\FtpServerAshxForm.cs:行号 415
[2019-02-12 09:55:27,566] 12 [DEBUG] -- Batch acquisition of 0 triggers
[2019-02-12 09:55:36,362] 90 [INFO ] -- [FtpServerAshxForm][Receive]parameter path is null now create the path ftp://47.101.160.82/FastFlow/19021209534310927
[2019-02-12 09:55:36,380] 90 [ERROR] -- System.Net.WebException: 远程服务器返回错误: (550) 文件不可用(例如,未找到文件,无法访问文件)。
   在 System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
   在 System.Net.CommandStream.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
   在 System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
   在 System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
   在 System.Net.FtpWebRequest.GetResponse()
   在 QmsFrameWork.FTP.FtpTool.MakeDir(String dirName) 位置 D:\QMSoft\QmsFrameWork\QmsFrameWork\FTP\FtpTool.cs:行号 574

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Farmwang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值