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

Exception on login

no avatar
User

MattD78

Posts

1

Joined

Sat Apr 30, 2011 8:45 am

Exception on login

by MattD78 » Sat Apr 30, 2011 9:48 am

Hello,
I've found a case where an exception is being thrown when AutoLogin is set to true. During the auto login process edtFTPnet is sending the "FEAT" command and it appears that if the server doesn't support any extra features (I'm connecting to a main frame) a null reference exception is thrown. I've worked around it by setting AutoLogin to false and calling Login() directly and everything works fine, but I thought you guys would like to know. I've included the log output and the stack trace below. Thanks for the free component.

DEBUG [FTPClient] 29 Apr 2011 16:27:50.421 : Connecting to XXX.XXX.XXX.XX:21
DEBUG [HostNameResolver] 29 Apr 2011 16:27:50.437 : Resolving XXX.XXX.XXX.XX
DEBUG [HostNameResolver] 29 Apr 2011 16:27:50.437 : XXX.XXX.XXX.XX resolved to XXX.XXX.XXX.XX
INFO [BaseSocket] 29 Apr 2011 16:27:50.453 : Connecting to XXX.XXX.XXX.XX:21 with timeout 120000 ms
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:50.562 : Setting socket timeout=120000
INFO [FTPControlSocket] 29 Apr 2011 16:27:50.562 : Command encoding=System.Text.SBCSCodePageEncoding
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:50.562 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:50.656 : 220-FTPD1 IBM FTP CS V1R10 at HMSYSNT1, 23:28:25 on 2011-04-29.
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.015 : 220 Connection will close if idle for more than 5 minutes.
DEBUG [FTPConnection] 29 Apr 2011 16:27:51.015 : Connected to XXX.XXX.XXX.XX (instance=0)
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.015 : ---> USER XXXXXXX
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.109 : 331 Send password please.
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.109 : ---> PASS ********
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.281 : 230 XXXXXXX is logged on. Working directory is "XXXXXXX.".
DEBUG [FTPConnection] 29 Apr 2011 16:27:51.281 : Successfully logged in
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.296 : ---> FEAT
DEBUG [FTPControlSocket] 29 Apr 2011 16:27:51.390 : 211 no Extensions supported


[System.NullReferenceException] {"Object reference not set to an instance of an object."} System.NullReferenceException

StackTrace:
at EnterpriseDT.Net.Ftp.FTPClient.Features()
at EnterpriseDT.Net.Ftp.FTPConnection.ProcessFeatures()
at EnterpriseDT.Net.Ftp.FTPConnection.PostLogin()
at EnterpriseDT.Net.Ftp.FTPConnection.Connect()
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Exception on login

by support2 » Sun May 01, 2011 1:45 pm

Thanks - it shouldn't do that. Please send an email to support at enterprisedt dot com to try the latest build.

Who is online

Users browsing this forum: No registered users and 13 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron