The exception is occuring on the Connect method.
SOURCE CODE
==========
FTPClient ftp = new FTPClient();
Logger.AddAppender(new FileAppender("c:/ftplog.txt"));
Logger.CurrentLevel = Level.ALL;
Logger log = Logger.GetLogger(typeof(FTPClient));
try
{
ftp.RemoteHost = "201.3.3.30";
ftp.Connect();
ftp.Login("anonymous@tgftp.nws.noaa.gov",pass);
...
}
catch (Exception ex)
{
log.Error("FTP Connect Exception", ex);
}
LOG CONTENTS
==========
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 20 Sep 2005 13:26:30.015 : Connecting to 201.3.3.30:21
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2005 13:26:30.109 : 230 fwint.thales FTP proxy (Version 5.0) ready.
ERROR [EnterpriseDT.Net.Ftp.FTPClient] 20 Sep 2005 13:26:32.375 : FTP Connect Exception : fwint.thales FTP proxy (Version 5.0) ready.
at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String expectedReplyCode)
at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateConnection()
at EnterpriseDT.Net.Ftp.FTPControlSocket.Initialize(BaseSocket sock, IPAddress remoteHost, Int32 controlPort, Int32 timeout)
at EnterpriseDT.Net.Ftp.FTPControlSocket..ctor(IPAddress remoteHost, Int32 controlPort, Int32 timeout)
at EnterpriseDT.Net.Ftp.FTPClient.Connect(IPAddress remoteAddr, Int32 controlPort, Int32 timeout)
at EnterpriseDT.Net.Ftp.FTPClient.Connect()
at MetarReader.MetarReader.allStations() in c:\inetpub\wwwroot\metarreader\metar.asmx.cs:line 666