Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.3k views
in .NET FTP by (560 points)
During transfer file occurs this error

Exception is: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
at ek.a(SocketShutdown A_0)
at em.a(SocketShutdown A_0)
at hq.b()

What is a problem?

6 Answers

0 votes
by (162k points)
Can you give us more info on how this error occurs?

Are you able to obtain a log file?

During transfer file occurs this error

Exception is: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
at ek.a(SocketShutdown A_0)
at em.a(SocketShutdown A_0)
at hq.b()

What is a problem?
0 votes
by (560 points)
More detail log:

2006-07-27 12:12:06,515 DEBUG - [rpl_FTPTransport] Substituting server supplied IP (10.1.0.40) with remote host IP (10.1.0.40) Used mem:45 MB
2006-07-27 12:12:06,562 DEBUG - [rpl_FTPTransport] Connecting directly to ftp-server 10.1.0.40:2407 Used mem:45 MB
2006-07-27 12:12:06,593 DEBUG - [rpl_FTPTransport] Created passive data-socket: SocksConnector= Used mem:45 MB
2006-07-27 12:12:06,640 DEBUG - [rpl_FTPTransport] Created passive data-socket: Protocol=c, CompatibilityFlags=Standard, UseSSLClosure=True, WaitOnClose=True Used mem:45 MB
2006-07-27 12:12:06,671 DEBUG - [rpl_FTPTransport] ---> STOR Up/check_4b640704-c9a5-4a67-8afd-8ab75ac80902 Used mem:45 MB
2006-07-27 12:12:06,718 DEBUG - [rpl_FTPTransport] 150 Connection accepted Used mem:45 MB
2006-07-27 12:12:06,750 DEBUG - [rpl_FTPTransport] Beginning c handshake on passive data-channel Used mem:45 MB
2006-07-27 12:12:06,859 DEBUG - [rpl_FTPTransport] Handshake complete Used mem:45 MB
2006-07-27 12:12:06,906 DEBUG - [rpl_FTPTransport] Closing passive data-channel. Used mem:45 MB
2006-07-27 12:12:06,953 DEBUG - [rpl_FTPTransport] Beginning SSL closure exchange on passive data-channel. Used mem:45 MB
2006-07-27 12:12:07,000 DEBUG - [rpl_FTPTransport] OnReceive - socket not connected - closing Used mem:46 MB
2006-07-27 12:12:07,000 DEBUG - [rpl_FTPTransport] SSL closure exchange Used mem:46 MB
2006-07-27 12:12:07,078 DEBUG - [rpl_FTPTransport] Close() called when open Used mem:46 MB
2006-07-27 12:12:07,171 WARN - [rpl_FTPTransport] Caught exception closing data socket : Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
2006-07-27 12:12:07,265 ERROR - [rpl_FTPTransport] Used mem:46 MB
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
at ek.a(SocketShutdown A_0)
at em.a(SocketShutdown A_0)
at hq.b()
at EnterpriseDT.Net.Ftp.FTPClient.a()
2006-07-27 12:12:07,421 DEBUG - [rpl_FTPTransport] Transferred 21024 bytes to remote host Used mem:46 MB
2006-07-27 12:12:07,468 DEBUG - [rpl_FTPTransport] 226 Transfer OK Used mem:46 MB
2006-07-27 12:12:07,515 DEBUG - [rpl_FTPTransport] ---> PASV Used mem:46 MB
2006-07-27 12:12:07,562 DEBUG - [rpl_FTPTransport] 227 Entering Passive Mode (10,1,0,40,9,104) Used mem:47 MB
0 votes
by (162k points)
We are looking into the problem. However it only occasionally occurs at the end of a transfer while closing the data socket & we don't believe the transfer is affected.
0 votes
by (162k points)
We've found a minor problem in the code where the data socket is closed twice under certain circumstances, which can cause this error to appear in the logs. We'll fix it for the next release, however this won't affect the transfer.
0 votes
by (560 points)
When do you plan next release?
0 votes
by (162k points)
We will probably release 3.0.1 in the next 2 weeks.

If you want to try a DLL with this problem fixed, we can send you a prerelease - email us at support at enterprisedt dot com.

When do you plan next release?

Categories

...