Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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)."

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.
Posted
Updated 6-Jun-10 9:44am
v3

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900