I change my code, now i'm using EnterpriseDT.Net.Ftp.Ssl.SSLFTPClient.
when i call the method moClient.Quit()
the program freeze for 20 seconds.
Here there'is the log:
DEBUG [SecureSocket] 7 feb 2007 15.35.38.290 : Shutdown(Both)
ERROR [SocketController] 7 feb 2007 15.35.38.300 : OnReceive - caught exception - closing : System.Net.Sockets.SocketException: Connessione in corso interrotta forzatamente dall'host remoto
System.Net.Sockets.SocketException: Connessione in corso interrotta forzatamente dall'host remoto
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at w.g(IAsyncResult A_0)
DEBUG [TransferBuffer] 7 feb 2007 15.35.38.310 : Close() called when open
ERROR [FTPClient] 7 feb 2007 15.35.38.391 : Caught exception : System.Threading.ThreadAbortException: [Resource lookup failed - infinite recursion detected. Resource name: Arg_ThreadAbortException]
System.Threading.ThreadAbortException: [Resource lookup failed - infinite recursion detected. Resource name: Arg_ThreadAbortException]
at System.IO.__UnmanagedMemoryStream.ReadByte()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadByte()
at System.Resources.ResourceReader.Read7BitEncodedInt(BinaryReader br)
at System.Resources.ResourceReader.CompareStringEqualsName(String name)
at System.Resources.ResourceReader.FindPosForResource(String name)
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)
at System.Resources.RuntimeResourceSet.GetString(String key, Boolean ignoreCase)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at System.Environment.GetResourceString(String key)
at System.IO.__Error.ReaderClosed()
at System.IO.StreamReader.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocketPASV()
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocket(FTPConnectMode connectMode)
at EnterpriseDT.Net.Ftp.FTPClient.a(String A_0, Boolean A_1)
at EnterpriseDT.Net.Ftp.FTPClient.a(Stream A_0, String A_1, Boolean A_2, Boolean A_3)