FTP Put - Works in VB 6.0, fails in VB.Net

J

JG

I recently upgraded a small VB 6.0 app to VB.Net. The upgrade process completed ok and everything seems to function properly in VB.Net except for the FTPPutFile. It consistently fails and returns a LastDLLError number of 32.
The setup of all the FTP statements themselves seems ok from all the various FTP sites I've checked out and there were no upgrade problems reported during the conversion from VB 6.0 to VB.Net. The upgrade process accepted most of the existing VB 6.0 FTP code.
Any ideas?

From http://www.developmentnow.com/g/38_0_0_0_0_0/dotnet-languages-vb.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
 
H

Herfried K. Wagner [MVP]

JG said:
I recently upgraded a small VB 6.0 app to VB.Net. The upgrade process
completed ok and everything seems to function properly in VB.Net except for
the FTPPutFile. It consistently fails and returns a LastDLLError number of
32.
The setup of all the FTP statements themselves seems ok from all the
various FTP sites I've checked out and there were no upgrade problems
reported during the conversion from VB 6.0 to VB.Net. The upgrade process
accepted most of the existing VB 6.0 FTP code.

Maybe your declares are buggy. Some sample FTP applications can be found
here:

Accessing FTP servers in .NET applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en>
 
C

Chad Z. Hower aka Kudzu

JG said:
I recently upgraded a small VB 6.0 app to VB.Net. The upgrade process
completed ok and everything seems to function properly in VB.Net
except for the FTPPutFile. It consistently fails and returns a
LastDLLError number of 32. The setup of all the FTP statements

Why not use a native FTP / .NET implementation? Indy is free and supports FTP:
http://www.indyproject.org/


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 

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