EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Unaccepted server reply (error code is 0)

Posted: 08/14/2007 13:30:11
by April Vicars (Basic support level)
Joined: 04/17/2007
Posts: 7

I am using visual studios .net 2005 with the 5.1.112 version of sbb. I have the "standard package" liscense. I can upload files using your sample ftps, but when I duplicate the settings in my own program and try to upload the same file, I get "Unaccepted server reply (error code is 0)" Any clue what might be happening here?

My code...
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Client.Address = "ftpsite"
Me.Client.PassiveMode = True
Me.Client.Password = "password"
Me.Client.Port = 10021
Me.Client.Username = "user"
Me.Client.SSLMode = CType(1, Short)
Me.Client.UseSSL = False
Client.Versions = 14
Client.AuthCmd = 0
Client.EncryptDataChannel = True

Catch ex As Exception
Exit Sub
End Try
Dim filepath As String = "\\path\testfile.txt"
Dim ds As Stream
ds = New FileStream(filepath, FileMode.Open, FileAccess.Read)
Client.Send(ds, filepath, 0, ds.Length - 1, False, 0)
Catch ex As Exception
End Try
Catch ex As Exception
End Try
End Sub

output from control send/receive...
<<< 220 <<>> at u1ecm87 FTP server ready. Time = 13:26:39
>>> USER user
<<< 331 Password required for user.
>>> PASS password
<<< 230 Connect:Enterprise UNIX login ok, access restrictions apply.
>>> FEAT
<<< 500 'FEAT': command not understood.
>>> TYPE I
<<< 200 Type set to I.
>>> PASV
<<< 227 Entering Passive Mode (999,99,99,99,99,99)
>>> STOR \\fs1\vfe\assurant\testfile.txt

----here is where it blows up and I get the aforementioned error message.

Thanks for your time.
Posted: 08/14/2007 14:23:41
by Eugene Mayevski (Team)

Please try build 117, it improves communication with some FTP servers. Should help in your case as well.

Sincerely yours
Eugene Mayevski



Topic viewed 2248 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!