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

vpanta

Unexpected null reply received

by vpanta » Fri Mar 25, 2005 1:34 am

no avatar
User

Guest

Re: Unexpected null reply received

by Guest » Fri Mar 25, 2005 2:08 am

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

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Unexpected null reply received

by support2 » Fri Mar 25, 2005 8:25 am


Who is online

Users browsing this forum: No registered users and 14 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron