0 votes

When I try to test the Ftp.dll, I get the following error message :-

TypeLoadException
Could not load type
'Limilabs.FTP.Client.ftp' from assembly
'Ftp, Version=2.0.19002.942,
Culture=neutral,
PublicKeyToken=6DC438AB78A525B3'

My test program is below :-

Imports Limilabs.FTP.Client

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Call TestConnect()
End Sub

Public Sub TestConnect()
    Using FtpCl As New Ftp()
        FtpCl.Connect("www.miniposftp.com.au")
        FtpCl.Login("ShuteHarbour", "Warehouse")
        FtpCl.Close()
    End Using
End Sub

End Class

I have added a reference to ftp.dll
I am using VB.Net in VS2008

What am I doing wrong ?

Thanks, Darren.

by

1 Answer

0 votes

Please make sure you are using full .NET framework, not the client profile.

In Visual Studio go to project properties/Application and set 'Target Framework' to '.NET Framework 4.0' or higher.

by (300k points)
...