Im getting an error only when im trying to get several amount of files... i get this error
IOException "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."}
coudl anybody please help me?
regards
Juan
this is the stack
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)\r\n
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)\r\n
at System.IO.StreamWriter.Flush()\r\n
at EnterpriseDT.Net.Ftp.FTPControlSocket.WriteCommand(String command)\r\n at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)\r\n at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocketPASV()\r\n
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocket(FTPConnectMode connectMode)\r\n
at EnterpriseDT.Net.Ftp.FTPClient.Dir(String dirname, Boolean full)\r\n
at EnterpriseDT.Net.Ftp.FTPConnection.GetFiles(String directory, Boolean full)\r\n
at EnterpriseDT.Net.Ftp.FTPConnection.GetFiles(String directory)\r\n
at DocumentProcessBatch.Program.Main(String[] args) in C:\\DEV\\593_2\\DocumentProcess\\DocumentProcessBatch\\DocumentProcessBatch\\Program.cs:line 307"