ftp in vb.net

J

JFB

Hello,
Somebody here a while ago give me this class from msdn for FTP
Public Class clsFTP

I loop thru 4 different accounts from my ftp and get all the files but I the
same time I deleted the files.
All the time I was dealing with small amount of files without any issue
until today that I have to get couple thousands files and looks like the
connection stops after every 87 files.
I check my ftp account with a different ftp client and no issues. In my pc I
installed an app using vb.net 2005 and add the new framework.
This FTP app was built in vb.net 2003 and it's running under Windows 2003
server.
Any ideas?
It's a new FTP class somewhere for vs 2005 or vs 2008?
I was checking on google and I saw that new ftp class for 2008 is very slow
so I don't want to bother trying that.
Thanks in advance.

JFB
 
R

Rick

I had the same problem with I class I made to download files from an FTP
site. When I traced it back it turned out to be the buffer size that I had
set for the socket.Receive command. In my case the original setting was 512
bytes. I increased to 1024 bytes and my problem went away.

I guess you would have to experiment with how big a buffer is necessary for
you to download all potential numbers of files.

There may be some other way to dynamically get this information and then set
the buffer accordingly, but I don't know what it is.

HTH,

Rick
 
J

J.B. Moreno

Hello,
Somebody here a while ago give me this class from msdn for FTP
Public Class clsFTP

Are you referring to:

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.KB.v10.en/enu_kbvbnetkb/vbnetkb/832679.htm

I loop thru 4 different accounts from my ftp and get all the files but I the
same time I deleted the files.
All the time I was dealing with small amount of files without any issue
until today that I have to get couple thousands files and looks like the
connection stops after every 87 files.
I check my ftp account with a different ftp client and no issues. In my pc I
installed an app using vb.net 2005 and add the new framework.
This FTP app was built in vb.net 2003 and it's running under Windows 2003
server.
Any ideas?
It's a new FTP class somewhere for vs 2005 or vs 2008?
I was checking on google and I saw that new ftp class for 2008 is very slow
so I don't want to bother trying that.
Thanks in advance.

There's the new ftpWebRequest, but no, no new FTP class. I'd try to
debug your app and see what is happening....
 
M

Michel Posseth [MCP]

FTP is still a bit buggy and not complete in the standard classes

i use a sockets level FTP class wich supports all FTP commands and works
flawless to Windows and Unix systems .

HTH

Michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top