远程服务器返回错误:(550)... [英] The remote server returned an error: (550) ...

查看:915
本文介绍了远程服务器返回错误:(550)...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在FTP上载和在ASP.NET中下载.当我尝试在上传后立即下载文件时,它会引发以下错误:

I am doing FTP upload and download in ASP.NET. When I try to download the file immediately after uploading, it is throwing the following error:

"The remote server returned an error: (550) File unavailable (e.g., file not found, no access)."


如果我等了一会儿然后尝试下载它,它工作正常.有人可以提出一种摆脱这种情况的方法吗?

PS:上载完成后,我正在将文件显示在网格中以下载它们,因此假设文件已完成.


If I wait for a minute and then try to download it, it''s working fine. Can somebody suggest a way to get out of this.

P.S.: As soon as uploading finishes, I am showing the files in a grid to download them, hence assuming that the file upload is complete.

推荐答案

我''ve之前碰到过这个问题,似乎(就我而言)它涉及服务器或客户端某处的缓存.客户端已完成数据的发送,但服务器尚未完成数据的接收和保存.

我通过在发送数据后在客户端添加延迟来解决了该问题.我不喜欢这种解决方案,但找不到其他解决方案.
I''ve run into that problem before and it appears that (in my case) it involved a cache either on the server or client somewhere. The client had finished sending the data, but the server had not finished receiving and saving it yet.

I solved it by adding a delay on the client side after sending the data. I didn''t like that solution, but I couldn''t find any other way to easily work around it.


这篇关于远程服务器返回错误:(550)...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆