Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

Exception connecting to same ftp server frm multiple threads

by kimbendtsen » Wed Aug 25, 2010 9:04 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Exception connecting to same ftp server frm multiple thr

by support2 » Thu Aug 26, 2010 9:36 am

no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

by kimbendtsen » Thu Aug 26, 2010 7:17 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Aug 27, 2010 3:44 pm

no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

by kimbendtsen » Fri Aug 27, 2010 10:26 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Aug 27, 2010 11:49 pm

no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

by kimbendtsen » Mon Aug 30, 2010 6:47 pm

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
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Tue Aug 31, 2010 9:16 pm

It looks to me like the Filezilla server is sending the same PASV command to each instance. Is that what is happening?
no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

by kimbendtsen » Wed Sep 01, 2010 5:16 pm

Hi again,

I'm not sure how to look for this..

Any chance you could take the source code supplied and run it against one of your ftp servers?

It needs to run 2 or 3 times in a row on my pc to course the exception.

Br
Kim
no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

by kimbendtsen » Fri Sep 03, 2010 5:02 pm

no avatar
User

kimbendtsen

Posts

7

Joined

Wed Aug 25, 2010 8:35 pm

by kimbendtsen » Wed Sep 08, 2010 11:25 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Sep 10, 2010 4:52 pm


Who is online

Users browsing this forum: No registered users and 19 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron