I have the FTPConnector connecting and transferring files to a local ftp server.
However the file that get transferred always miss off a few KB from the original file so I'm not able to open the new file on the ftp server.
I have tried changing the transferType and ConnectionMode options, but seems to make no difference at all. This happens to all file types. I have included the log below. Any ideas/help would be appreciated.
Thanks.
DEBUG [FTPControlSocket] 2 Feb 2007 16:00:14.328 : NewPassiveDataSocket(192.168.1.49,3270)
DEBUG [FTPControlSocket] 2 Feb 2007 16:00:14.328 : ---> STOR cms1.dmp
DEBUG [FTPControlSocket] 2 Feb 2007 16:00:14.328 : 125 Data connection already open; Transfer starting.
ALL [FTPConnection] 2 Feb 2007 16:00:14.328 : Invoking delegate EnterpriseDT.Net.Ftp.BytesTransferredHandler
ALL [FTPConnection] 2 Feb 2007 16:00:14.328 : Have GUI control
ALL [FTPConnection] 2 Feb 2007 16:00:14.328 : GUI control invocation not required
ALL [FTPConnection] 2 Feb 2007 16:00:14.468 : Invoking delegate EnterpriseDT.Net.Ftp.BytesTransferredHandler
ALL [FTPConnection] 2 Feb 2007 16:00:14.468 : Have GUI control
ALL [FTPConnection] 2 Feb 2007 16:00:14.468 : GUI control invocation not required
ALL [FTPConnection] 2 Feb 2007 16:00:14.468 : Invoking delegate dynamically
ALL [FTPConnection] 2 Feb 2007 16:00:14.468 : Dynamic delegate invocation complete
WARN [FTPClient] 2 Feb 2007 16:00:16.718 : Caught exception flushing output-stream : System.ArgumentException: Found a low surrogate char without a preceding high surrogate at index: 880. The input may not be in this encoding, or may not contain valid Unicode (UTF-16) characters.
Parameter name: chars at System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, UTF8Encoderencoder)
at System.Text.UTF8Encoding.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, UTF8Encoder encoder)
at System.Text.UTF8Encoder.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, Boolean flush)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Flush()
at EnterpriseDT.Net.Ftp.FTPClient.PutASCII(Stream srcStream, String remoteFile, Boolean append, Boolean alwaysCloseStreams)
ALL [FTPConnection] 2 Feb 2007 16:00:16.750 : Invoking delegate EnterpriseDT.Net.Ftp.FTPFileTransferEventHandler
ALL [FTPConnection] 2 Feb 2007 16:00:16.750 : Have GUI control
ALL [FTPConnection] 2 Feb 2007 16:00:16.750 : GUI control invocation not required
ALL [FTPConnection] 2 Feb 2007 16:00:16.750 : Invoking delegate dynamically
ALL [FTPConnection] 2 Feb 2007 16:00:16.750 : Dynamic delegate invocation complete
ALL [FTPConnection] 2 Feb 2007 16:00:16.765 : Invoking delegate EnterpriseDT.Net.Ftp.FTPConnectionEventHandler
ALL [FTPConnection] 2 Feb 2007 16:00:16.765 : Have GUI control
ALL [FTPConnection] 2 Feb 2007 16:00:16.765 : GUI control invocation not required
ALL [FTPConnection] 2 Feb 2007 16:00:16.765 : Invoking delegate dynamically
ALL [FTPConnection] 2 Feb 2007 16:00:16.765 : Dynamic delegate invocation complete
DEBUG [FTPControlSocket] 2 Feb 2007 16:00:16.765 : ---> QUIT
DEBUG [FTPControlSocket] 2 Feb 2007 16:00:16.765 : 226 Transfer complete.