Hello,
This problem occurs on a production server and due to some other factors i didnt have the time to start logging on those machines yet, i will eventualy if still needed.
However, in a recent update i changed the error handling and found the real cause of the problem, the exception descriped earlier occured in the Dispose method. But it seems another error occured before the dispose was called (due to a using block), because a new error was being raise in the dispose the original exception was lost.
This is the error that occurs prior to the error from "Close":
System.IO.IOException: An I/O exception occurred. ---> System.IO.IOException: Timed out while reading data
at ct.b(Byte[] A_0, Int32 A_1, Int32 A_2)
at x.c(IAsyncResult A_0)
at ev.a(IAsyncResult A_0)
at ev.a(Byte[] A_0, Int32 A_1, Int32 A_2, SocketFlags A_3)
at d.b(Byte[] A_0, Int32 A_1, Int32 A_2)
--- End of inner exception stack trace ---
at d.b(Byte[] A_0, Int32 A_1, Int32 A_2)
at System.IO.StreamReader.ReadBuffer()
at System.IO.StreamReader.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
at EnterpriseDT.Net.Ftp.FTPClient.Dir(String dirname, Boolean full)
at EnterpriseDT.Net.Ftp.FTPClient.DirDetails(String dirname)
at EnterpriseDT.Net.Ftp.FTPConnection.GetFileInfos(String directory)
at EnterpriseDT.Net.Ftp.FTPConnection.GetFileInfos()
at Xxxx.Yyyy.Communication.Client.Zzzz.PrepareReceive(String Uuuu)
My timeout is set to 60000, and i dont receive any problems in 95% of the cases, the next attemp ussualy does succeed.