Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

BrentWhiteNC

Posts

2

Joined

Mon Mar 24, 2014 1:31 pm

Can not use connect() command--says login with USER first

by BrentWhiteNC » Mon Mar 24, 2014 1:36 pm

This is the code I have:

var ftp = new FTPConnection;
{
set address, username, password, ACTIVE mode (not showing for security reasons
}

ftp.Connect();

On that last line I get an error "Login with USER first (code =503)"

I can't even connect let alone issue a login command. This is my first time using FTP with this company.

Using C# for .NET 4.5
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Can not use connect() command--says login with USER firs

by support2 » Mon Mar 24, 2014 1:46 pm

Please and post the log file (suitably edited to remove the hostname etc)
no avatar
User

BrentWhiteNC

Posts

2

Joined

Mon Mar 24, 2014 1:31 pm

Re: Can not use connect() command--says login with USER firs

by BrentWhiteNC » Mon Mar 24, 2014 11:16 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Can not use connect() command--says login with USER firs

by support2 » Tue Mar 25, 2014 12:22 pm

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Tue Mar 25, 2014 12:27 pm

It certainly appears that you have to use FTPS in order to log into a user account. Our commercial version of the library, contains a component, , that allows you to set the protocol to FTPSExplicit, which should allow you to log in.

- Hans (EnterpriseDT)

Who is online

Users browsing this forum: No registered users and 25 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron