Home All Groups Group Topic Archive Search About

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

Author
28 Jun 2005 3:30 PM
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

Author
28 Jun 2005 4:22 PM
Herfried K. Wagner [MVP]
"JG" <nospam@developmentnow.com> schrieb:
>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>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 Jul 2005 11:52 AM
Chad Z. Hower aka Kudzu
JG<nospam@developmentnow.com> wrote in
news:11cad2d9-901d-467d-bd2c-d2dd2cb62261@msnews.microsoft.com:
> 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/