Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by
Hi,
I have the error "Unexpected null reply received" when download a file of
2Mb.
Why?
Is have use the 1.1.6 version, but I have the problem.
Help me!

2 Answers

0 votes
by
[quote="vpanta"]Hi,
I have the error "Unexpected null reply received" when download a file of
2Mb.
Why?
Is have use the 1.1.6 version, but I have the problem.
Help me!

This is my code :
>
> 'Connection and Login
> Private WithEvents FTPClient As EnterpriseDT.Net.Ftp.FTPClient
>
> Me.FTPClient = New EnterpriseDT.Net.Ftp.FTPClient(FTPServer, FTPPorta,
> (FTPTimeOut * 1000)) 'sec*1000
> Me.FTPClient.Login(ParametriApp.FTPUtente, ParametriApp.FTPPassword)
> Me.FTPClient.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.ACTIVE
> Me.FTPClient.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY
>
> 'Download list file
>
> Dim FileRemoti() As String
> Dim FileLocale As String
>
> Try
> FileRemoti = Me.FTPClient.Dir(".", False)
>
> For Each FileRemoto As String In FileRemoti
> FileLocale = ParametriApp.CartellaLocale
> If FileLocale.Substring(FileLocale.Length - 1) <> "" Then FileLocale
> = FileLocale & ""
> FileLocale = FileLocale & FileRemoto
> If Me.DownloadFile(FileRemoto, FileLocale) Then
> If ParametriApp.CancellaFileDopoDownload Then
> Me.CancellaFileRemoto(FileRemoto)
> End If
> Next
>
> Catch ex As Exception
> Finally
> End Try
>
> Private Function DownloadFile(ByVal fileRemoto As String, ByVal fileLocale As
> String) As Boolean
>
> Try
> Me.ScriviDebug("Download di :" & fileRemoto)
> Me.FTPClient.Get(fileLocale, fileRemoto) 'ERROR
>
> Return True
>
> Catch ex As Exception
> MError.MemoErrore(ex)
> Return False
> Finally
> End Try
> End Function
>
> Answer please!
0 votes
by (162k points)
You need to post a log file. Does this happen with any other size file? Are you sure you are using the 1.1.6 DLL?

Hi,
I have the error "Unexpected null reply received" when download a file of
2Mb.
Why?
Is have use the 1.1.6 version, but I have the problem.
Help me!

Categories

...