Server returned an error: General failure - WeOnlyDo Discussion board

Server returned an error: General failure (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Satheesh Babu, Tuesday, February 05, 2008, 00:40 (6137 days ago)

Hi

We are using the WeOnlyDo.Client.SFTP.dll (Version 2.0.1.8). While we are able to connect to the SFTP server successfully, we weren't able to put the file in the SFTP server. The exception we get is Server returned an error: General failure . The line of code which causes this exception is

sftp1.PutFile(m_local_file_name)
Saying the error message Server returned an error: General failure
Where m_local_file_name is the path of the file in my local machine

ACTUAL CODE SNIPPET

Try
Dim sftp1 As New WeOnlyDo.Client.SFTP
Dim m_local_file_name As String = C:Documents and SettingssatheeshbabuDesktop est.txt
sftp1 = New WeOnlyDo.Client.SFTP
sftp1.Login = *************
sftp1.Password = *************
sftp1.RemotePath = test.txt
sftp1.Encryption = WeOnlyDo.Client.SFTP.Encryptions.Auto
sftp1.Blocking = True
sftp1.LicenseKey = *************
sftp1.TransferMode = WeOnlyDo.Client.SFTP.TransferModes.Binary
sftp1.Connect( ************* )
sftp1.PutFile(m_local_file_name)
IO.File.Delete(m_local_file_name)
Catch ex As Exception
Throw (ex)
End Try

Actually we are not getting any other detailed error message other than this general failure message. It would be of great help if someone could assist regarding this issue

Thank you,
Satheesh Babu


Complete thread: