Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in .NET FTP by (240 points)
Running the connection tester, I'm able to upload relatively small files with no issue. However, when I start to upload a largish zip file (~20 MB), an error occurs partway through the transfer.

Log snippet follows starting with the last few successful block uploads:
ALL : Send : Name=SSH_FXP_WRITE,Type=6,RequestID=39
handle=080BA53000000003,offset=69669,datalen=4103
DEBUG : RepeatCallback received 52 bytes
DEBUG : RepeatCallback received 52 bytes
DEBUG : NextMessageLength=9
DEBUG : Received message (type=101,len=9)
DEBUG : ErrorCode|Status=0
DEBUG : AddMessage(39) - added to store
ALL : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=39
errorCode=0
errorMessage=
language=
ALL : Send : Name=SSH_FXP_WRITE,Type=6,RequestID=40
handle=080BA53000000003,offset=73772,datalen=8168
DEBUG : RepeatCallback received 84 bytes
DEBUG : Connection closed
DEBUG : RepeatCallback received 0 bytes
DEBUG : Connection closed
ERROR : GetMessage timed out (request id=40) : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
   at fb.a(Int32 A_0)
ALL : Send : Name=SSH_FXP_CLOSE,Type=4,RequestID=41
handle=080BA53000000003
ERROR : GetMessage timed out (request id=41) : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=41)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=41)
   at fb.a(Int32 A_0)
ERROR : Failed to close output stream in put() : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=41)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=41)
   at fb.a(Int32 A_0)
   at ae.a(Int32 A_0)
   at ae.c(Byte[] A_0)
   at c5.a()
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2, Boolean A_3)
ALL : Invoking delegate EnterpriseDT.Net.Ftp.FTPFileTransferEventHandler
ALL : Have GUI control
ALL : GUI control invocation required
ALL : Invoking delegate asynchronously using GUI control
DEBUG : Drilling into System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
ERROR : Error event while executing UploadFile - notifying Error event-handlers
ALL : Invoking delegate EnterpriseDT.Net.Ftp.FTPErrorEventHandler
ALL : Have GUI control
ALL : GUI control invocation required
ALL : Invoking delegate asynchronously using GUI control
ERROR : Event-handlers notified successfully
DEBUG : FTP task completed UploadFile(String="G:\Scripworld\test\ftptest\largetestfile.zip", String="largetestfile.zip")
DEBUG : Queuing FTP task GetFileInfos()
DEBUG : Starting FTP task processor
DEBUG : Queuing FTP task GetFileInfos()
DEBUG : Running FTP task GetFileInfos()
DEBUG : Queuing FTP task GetFileInfos()
DEBUG : Running task: GetFileInfos()
ALL : Invoking delegate EnterpriseDT.Net.Ftp.ExFTPConnection+a+a
ALL : Have GUI control
ALL : Invoking delegate dynamically
ALL : Invoking delegate EnterpriseDT.Net.Ftp.FTPDirectoryListEventHandler
ALL : Have GUI control
ALL : GUI control invocation required
ALL : Invoking delegate asynchronously using GUI control
DEBUG : GetAttributes(/Incoming/)
ALL : Send : Name=SSH_FXP_STAT,Type=17,RequestID=42
path=/Incoming/
ERROR : Connection Error : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
   at fb.a(Int32 A_0)
   at ae.a(Int32 A_0)
   at ae.a(Byte[] A_0, Int64 A_1, Byte[] A_2, Int32 A_3, Int32 A_4)
   at c5.a(Byte[] A_0, Int32 A_1, Int32 A_2)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, Stream A_1, TransferDirection A_2, String A_3, Int64 A_4)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2, Boolean A_3)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Put(String local, String remote, Boolean append)
   at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile, Boolean append)
   at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile)
ERROR : Connection Error : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
   at fb.a(Int32 A_0)
   at ae.a(Int32 A_0)
   at ae.a(Byte[] A_0, Int64 A_1, Byte[] A_2, Int32 A_3, Int32 A_4)
   at c5.a(Byte[] A_0, Int32 A_1, Int32 A_2)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, Stream A_1, TransferDirection A_2, String A_3, Int64 A_4)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2, Boolean A_3)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Put(String local, String remote, Boolean append)
   at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile, Boolean append)
   at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile)
ERROR : Connection Error : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=40)
   at fb.a(Int32 A_0)
   at ae.a(Int32 A_0)
   at ae.a(Byte[] A_0, Int64 A_1, Byte[] A_2, Int32 A_3, Int32 A_4)
   at c5.a(Byte[] A_0, Int32 A_1, Int32 A_2)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, Stream A_1, TransferDirection A_2, String A_3, Int64 A_4)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2, Boolean A_3)
   at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Put(String local, String remote, Boolean append)
   at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile, Boolean append)
   at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile)
DEBUG : Error while executing UploadFile.  Calling ShowError delegate.
DEBUG : Showing error message-box
DEBUG : Error message-box shown successfully
ERROR : GetMessage timed out (request id=42) : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=42)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=42)
   at fb.a(Int32 A_0)
ALL : Invoking delegate EnterpriseDT.Net.Ftp.FTPDirectoryListEventHandler
ALL : Have GUI control
ALL : GUI control invocation required
ALL : Invoking delegate asynchronously using GUI control
ERROR : Error while filling FTPRemoteFileList : System.NullReferenceException: Object reference not set to an instance of an object.
DEBUG : Drilling into System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
ERROR : Error event while executing GetFileInfos - notifying Error event-handlers
ALL : Invoking delegate EnterpriseDT.Net.Ftp.FTPErrorEventHandler
ALL : Have GUI control
ALL : GUI control invocation required
System.NullReferenceException: Object reference not set to an instance of an object.
   at EnterpriseDT.Net.Ftp.Forms.FTPRemoteFileList.ftp_DirectoryListed(Object sender, FTPDirectoryListEventArgs e)
ALL : Invoking delegate asynchrono

2 Answers

0 votes
by (162k points)
This looks like the same problem as one that we recently fixed for a customer, that hasn't yet been released.

Please email us at support at enterprisedt dot com and we'll send you the download link for the pre-release version with the fix in it.
0 votes
by (480 points)
Dear Support,

I used stream can be fix the problem. can you send new version when you released.

Code:

Try
If ChkASC.Checked Then
FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.ASCII
Else
FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY
End If

Dim myFileStream = System.IO.File.OpenRead(TextBox4.Text & TextBox5.Text)
ListBox1.Items.Add("Upload Stream: " & TextBox5.Text)
FtpConnection1.UploadStream(myFileStream, TextBox5.Text)
FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.ASCII
Catch ex As Exception
ListBox1.Items.Add("Err: " & ex.Message)
End Try

Categories

...