hi experts,
I have hit upon a problem which I'm not sure is my usage or a bug in the dll. I'm using the free version of the .net client ftp up agains a filezilla server.
I have mad a small test program that illustrates the problem. Basically 2 threads, one uploading and one getting fileInfos, each with its own FtpConnection. And still there is an exception thrown.
I have only seen the problem when using passive connection, but I'm not sure if that is conclusive.
Wouldn't the ftpConnection live completely seperately and not be able to influence other ftpConnections in other threads?
System.Net.Sockets.SocketException was unhandled
Message=Only one usage of each socket address (protocol/network address/port) is normally permitted 127.0.0.1:1911
Source=System
ErrorCode=10048
NativeErrorCode=10048
StackTrace:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at EnterpriseDT.Net.StandardSocket.Connect(EndPoint remoteEP)
at EnterpriseDT.Net.Ftp.FTPControlSocket.NewPassiveDataSocket(String ipAddress, Int32 port)
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocketPASV()
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocket(FTPConnectMode connectMode)
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 EDtFtpTestProject.Program.<>c__DisplayClass6.<startInfos>b__5() in c:\documents and settings\kilbe\my documents\visual studio 2010\Projects\EDtFtpTestProject\EDtFtpTestProject\Program.cs:line 86
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: