Solved

FTP problems from a vb application

Posted on 2002-05-17
7
145 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:aellard
7 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 7015899
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.
0
 

Author Comment

by:aellard
ID: 7015911
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.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7015916
try closing the connection between each file.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7016639
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.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7060691
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:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7061040
I agree.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7065899
Thanks, emoreau and Richie for your help here.

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

Moondancer - EE Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now