Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.2k views
in .NET FTP by (260 points)
Hi,

We are connecting to a bank system i Sweden with EnterpriseDT.NET.Ftp and gets an error when we connect. I dont know what kind of server they have.

How can this be avoid?
What property has to be set to avoid EnterpriseDT to send CWD?

The log shows:
DEBUG [bs] 2 apr 2015 16:54:00.653 : 123.123.123.123 resolved to 123.123.123.123
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 2 apr 2015 16:54:00.654 : Connecting to 123.123.123.123:21
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.705 : 220-FTPD1 IBM FTP CS V2R1 at ftp.bankgirot.se, 16:55:24 on 2015-04-02.
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.706 : 220 Connection will close if idle for more than 120 minutes.
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.712 : ---> USER xxxxxx
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.781 : 331 Send password please.
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.782 : ---> PASS ********
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.885 : 230 xxxxxx is logged on. Working directory is "xxxxxx.".
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.887 : ---> TYPE A
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.906 : 200 Representation type is Ascii NonPrint
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.908 : ---> PWD
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.928 : 257 "'xxxxxxx.'" is working directory.
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.931 : ---> CWD 'xxxxxx.'
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.950 : 500 User Exit denies Userid 'xxxxxx' from using Command 'CWD'.
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.959 : ---> QUIT
DEBUG [FTPControlSocket] 2 apr 2015 16:54:00.978 : 221 Quit command received. Goodbye.

6 Answers

0 votes
by (161k points)
It looks to me like the user is not permitted to use the CWD command.

Set AutoLogin property to false, and then use the Login() method to login.
0 votes
by (260 points)
I tried that now but then the log file does not give anything, its created but empty.
The .Login method does not log, only the .Connect

It also looks like I come as far as before, logged out :(
0 votes
by (161k points)
Set AutoLogin to false, call Connect() and then Login(user,pwd).
0 votes
by (260 points)
Set AutoLogin to false, call Connect() and then Login(user,pwd).


The .Login method does not take parameters but I got it to work with latest version 8.6.5.20 :D
0 votes
by (161k points)
Oops yes - but you just set the UserName and Password properties prior to calling Login().
0 votes
by (260 points)
Oops yes - but you just set the UserName and Password properties prior to calling Login().


Works fine with latest version. I forgot to upload it to the server ;)

Categories

...