FTP problems from a vb application

I have a vb application that is a content management system for a website. It FTP's any new content or components to the destination of the live website every half hour using the Internet Transfer Control. The problem is if there is more than one component waiting to be FTP'ed it fails on the transfer of the second component and returns the following error "550 Content: The system cannot find the file specified" even though its the same destination as the first transfer. The file definitely exists there. It will continue on and transfer a third component sucessfully. Also a half an hour later the application will successfully transfer the failed component when it is first in the queue.All theories are welcome.
Who is Participating?
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
I also had this problem last year. I resolved it by having a loop (1 to 10 I think). Inside each loop, I open the connection transfert file and CLOSE the connection. This really helped me.
aellardAuthor Commented:
I have a loop in it at the moment that loops through all the components that are in the queue but it still always seems to fail on the second component. The same code is used for the transfer of content files to the live site and it works fine for all content files that are in the queue.
Éric MoreauSenior .Net ConsultantCommented:
try closing the connection between each file.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Richie_SimonettiIT OperationsCommented:
i am with emoreau 100%. i had that problem too (but not with control) and resolved open/close connection for each file. It appears like a time out problem from time to time so connection is lost.
Éric MoreauSenior .Net ConsultantCommented:
This question appears to be abandoned. A question regarding it will be left in the Community Support
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:

Richie_SimonettiIT OperationsCommented:
I agree.
Thanks, emoreau and Richie for your help here.

I have finalized this question, and will monitor it for comments.

Moondancer - EE Moderator
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.