Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in .NET FTP by (220 points)
Hi, I'm using the trial version of edtFTPnet/Compact in order to evaluate the solution..

I have a problem when I try to update a file from Windows CE to a server FTP (Windows XP)
I use the following code

Dim ftp As New FtpConnection

ftp.LicenseOwner = "trialuser"
ftp.LicenseKey = "xxx-xxxx-xxxx-xxxx"
ftp.ServerAddress = "myserver"
ftp.UserName = Nothing
ftp.Password = Nothing

ftp.Connect()

ftp.UploadFile(pathfile, filename)

ftp.Close()

I have this error: Login with user and password (code = 530), Why?

The FTP authentication is anonymous and when I only try to connect there is not the problem

Can you help me?

Thanks

2 Answers

0 votes
by (51.6k points)
Try setting the UserName property to "anonymous":
ftp.Password = "anonymous"


- Hans (EnterpriseDT)
0 votes
by (220 points)
Great, now it works..

Thanks..

Categories

...