Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Secure FTP doesn't upload
scottrassbach

From: Waterloo, WI USA
Posts: 7
Member Since: 05/19/03
posted May 19, 2003 12:01 PM

I just bought the SecureFTP activeX control for .NET

I have a vendor's remote log in site that I must connect to.

When I use the Windows command line FTP, it goes like this:

Anonymous login
USER: UserLogin & Password
CD: Change directory to "in"
PUT: upload file.

When I use the component, I do the following:

Ftp1.Server = "ftp.vendor.com"
Ftp1.Username = "anonymous"
Ftp1.Password = "anonymous"
Dim Myfile As Dart.PowerTCP.SecureFtp.FtpFile

Dim invoke As Dart.PowerTCP.SecureFtp.Invoke

Try
  invoke = Ftp1.Invoke(Dart.PowerTCP.SecureFtp.FtpCommand.Username,
"NAME")
  MsgBox(invoke.Response.ToString)
  invoke = Ftp1.Invoke(Dart.PowerTCP.SecureFtp.FtpCommand.Password,
"PASS")
  MsgBox(invoke.Response.ToString)
  invoke = Ftp1.Invoke(Dart.PowerTCP.SecureFtp.FtpCommand.ChangeDir,
"in")
  MsgBox(invoke.Response.ToString)
  Myfile = Ftp1.Put("C:\gwtestxml.xm_", "in/gwtestxml.xm_")
  MsgBox(Myfile.RemoteFileName)
Catch ex As Exception
  MsgBox(ex.Message)
End Try


I get the following SocketException: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"

Help?
scottrassbach

From: Waterloo, WI USA
Posts: 7
Member Since: 05/19/03
posted May 19, 2003 12:02 PM

I should note that the exception comes at the "PUT" command.
scottrassbach

From: Waterloo, WI USA
Posts: 7
Member Since: 05/19/03
posted May 19, 2003 12:12 PM

Never mind.

Had to set "PASSIVE" to False. Upload works fine now.

-Scott
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX