Jump to content


Photo

Connection result = 17


  • Please log in to reply
3 replies to this topic

#1 nooch

nooch
  • Members
  • 2 posts

Posted 10 November 2006 - 01:00 PM

Everytime i try to connect i get the result 17?

I'm using VB.NET (not C#.net)

This is my test code just to see if i can get it working...

Dim oFTP As New sfFTPLib.FTPConnectionSTA

MsgBox("object created!")

oFTP.Host = "xxx"
oFTP.Username = "xxx"
oFTP.Password = "xxx"
oFTP.Port = 21
oFTP.Protocol = enumProtocol.ftpProtocolNormal
oFTP.Passive = True
oFTP.MLST = True
oFTP.LogFile = "C:\FTPLOG.txt"
MsgBox("port = " & oFTP.Port)

Dim result

result = oFTP.Connect

MsgBox(result)

I've looked at the server logs and it doesn't show any connections from me going in, so i figured it's just not connecting? I'm using the trial version for now. Any ideas?

ah i feel a bit stupid now, this is to do with the licence...

EDIT: I feel really stupid now, should have looked at the source code. Sorry it's been a long day :$

LAST EDIT: Nope, still says bad licence am i supposed to enter/change something because i'm using the trial version?

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 10 November 2006 - 08:12 PM

Please try again with the latest version:
http://www.smartftp....ftplib/download

Regards,
-Mat

#3 nooch

nooch
  • Members
  • 2 posts

Posted 13 November 2006 - 09:12 AM

tried that and didn't work.

I've regsvr32 -u sfFTPlib.dll and deleted the directory and the reg keys for the library, then i re-installed to see if this was the problem.

But as soon as i run the sample code (VBDemo) it says:

Failed to verify license key.
OnConnect()
OnChangeDirectory("/SmartFTP")

#4 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 13 November 2006 - 09:53 AM

Hello ..

Because you are using the trial version the LoadLicenseKey method will fail. You can ignore it and the component will work for 30 days without a license. If you get result 17 when you call Connect() you are not using the latest version. In this case download and install it from
http://www.smartftp....ftplib/download

Regards,
SmartFTP




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users