Hi again,
Here is a full log from when the program is run. It crashes on the first iteration. The thing is that it makes a difference if the program has been run before. So something seems to be hanging.
The target .net framework is 2.0. (Just tested with targit framework set to 4.0 and it gives the same result).
DEBUG [FTPConnection] 30 aug 2010 10:41:17.025 : Set LocalDirectory='C:\Documents and Settings\kilbe\my documents\visual studio 2010\Projects\EDtFtpTestProject\EDtFtpTestProject\bin\Debug'
DEBUG [FTPConnection] 30 aug 2010 10:41:17.025 : Set LocalDirectory='C:\Documents and Settings\kilbe\my documents\visual studio 2010\Projects\EDtFtpTestProject\EDtFtpTestProject\bin\Debug'
DEBUG [FTPClient] 30 aug 2010 10:41:17.025 : Connecting to 127.0.0.1:21
DEBUG [FTPClient] 30 aug 2010 10:41:17.025 : Connecting to 127.0.0.1:21
DEBUG [HostNameResolver] 30 aug 2010 10:41:17.072 : Resolving 127.0.0.1
DEBUG [HostNameResolver] 30 aug 2010 10:41:17.072 : Resolving 127.0.0.1
DEBUG [HostNameResolver] 30 aug 2010 10:41:17.072 : 127.0.0.1 resolved to 127.0.0.1
DEBUG [HostNameResolver] 30 aug 2010 10:41:17.072 : 127.0.0.1 resolved to 127.0.0.1
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : Setting socket timeout=60000
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : Setting socket timeout=60000
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : Command encoding=System.Text.ASCIIEncoding
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : Command encoding=System.Text.ASCIIEncoding
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 220-FileZilla Server version 0.9.36 beta
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 220-FileZilla Server version 0.9.36 beta
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 220-written by Tim Kosse (
Tim.Kosse@gmx.de)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 220-written by Tim Kosse (
Tim.Kosse@gmx.de)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 220 Please visit
http://sourceforge.net/projects/filezilla/
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 220 Please visit
http://sourceforge.net/projects/filezilla/
DEBUG [FTPConnection] 30 aug 2010 10:41:17.072 : Connected to 127.0.0.1 (instance=0)
DEBUG [FTPConnection] 30 aug 2010 10:41:17.072 : Connected to 127.0.0.1 (instance=1)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> USER vobServer
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> USER vobServer
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 331 Password required for vobserver
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 331 Password required for vobserver
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> PASS ********
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> PASS ********
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 230 Logged on
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 230 Logged on
DEBUG [FTPConnection] 30 aug 2010 10:41:17.072 : Successfully logged in
DEBUG [FTPConnection] 30 aug 2010 10:41:17.072 : Successfully logged in
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> TYPE I
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> TYPE I
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 200 Type set to I
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 200 Type set to I
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> PWD
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> PWD
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 257 "/" is current directory.
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 257 "/" is current directory.
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> CWD /log/can
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> CWD /log/can
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 250 CWD successful. "/log/can" is current directory.
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> PWD
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 257 "/log/can" is current directory.
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 250 CWD successful. "/log/can" is current directory.
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : ---> PWD
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.072 : 257 "/log/can" is current directory.
DEBUG [FTPConnection] 30 aug 2010 10:41:17.088 : UploadFile(c:\tmp\vobFtpServer\log\can\gnd-ascylog000142.elog,gnd-ascylog000143.elog,False)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : ---> SYST
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : 215 UNIX emulated by FileZilla
DEBUG [FTPFileFactory] 30 aug 2010 10:41:17.088 : Selected UNIX parser
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : ---> PWD
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : 257 "/log/can" is current directory.
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : ---> PASV
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : 227 Entering Passive Mode (127,0,0,1,6,121)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : Server supplied address=127.0.0.1
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : Server supplied port=1657
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : autoPassiveIPSubstitution=True
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : remoteAddr=127.0.0.1
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : Substituting server supplied IP (127.0.0.1) with remote host IP (127.0.0.1)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:17.088 : NewPassiveDataSocket(127.0.0.1,1657)
ERROR [FTPControlSocket] 30 aug 2010 10:41:17.088 : Failed to create connecting socket
ERROR [FTPControlSocket] 30 aug 2010 10:41:17.088 : System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted 127.0.0.1:1657
ERROR [FTPControlSocket] 30 aug 2010 10:41:17.088 : at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
ERROR [FTPControlSocket] 30 aug 2010 10:41:17.088 : at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
ERROR [FTPControlSocket] 30 aug 2010 10:41:17.088 : at EnterpriseDT.Net.StandardSocket.Connect(EndPoint remoteEP)
ERROR [FTPControlSocket] 30 aug 2010 10:41:17.088 : at EnterpriseDT.Net.Ftp.FTPControlSocket.NewPassiveDataSocket(String ipAddress, Int32 port)
DEBUG [FTPControlSocket] 30 aug 2010 10:41:20.228 : ---> PASV