Dart Home | PowerTCP SFTP & SSH for .NET | Custom Development | Reply | PowerTCP SFTP & SSH for .NET Topics | Forums |
Author | Forum: PowerTCP SFTP & SSH for .NET Topic: sftp.Put operation results in "Unexpected end of sftp stream" exception |
AmeetJ From: USA Posts: 2 Member Since: 12/08/14 |
posted December 8, 2014 10:31 AM Hello, I am using the 4.7 version of sftp lib for dot Net. My application is written in C# using framework 4.5. I can verify that the file is ideed on the sftp host, yet sftp.Put results in "Unexpected end of sftp stream" error. My code is as follows: sftp1.AutoSetTime = false; sftp1.Put(fileName, extractFilename, CopyMode.Copy); Partial Process Log Entry: 12/8/2014 10:22:52 AM - [ Connected to safetransvalidate.wellsfargo.com ] 12/8/2014 10:22:53 AM - Secure Connection established. 12/8/2014 10:22:53 AM - Client connected to <xxx.yyy.zzz.com> on port 22 Client to server crypto algorithm: aes128-cbc Client to server MAC algorithm: hmac-md5 Server to client crypto algorithm: aes128-cbc Server to client MAC algorithm: hmac-md5 Key exchange algorithm: diffie-hellman-group1-sha1 Server host key algorithm: ssh-rsa 12/8/2014 10:22:53 AM - File was transferred successfully from C:\export\ACHMigration\Do_Not_Process to Do_Not_Process 12/8/2014 10:22:53 AM - Total bytes transferred : 3456 12/8/2014 10:23:00 AM - File transfer failed! 12/8/2014 10:23:00 AM - Connection closed Partial Exception dump: The following phase threw an exception: WellsFargoFTP.Activities.WF_PutFile ---> System.IO.IOException: Unexpected end of sftp stream. at Dart.Ssh.Sftp.Put(String localFileName, String remoteFileName, CopyMode mode) at WellsFargoFTP.Activities.WF_PutFile.SendFile(String fileName) in c:\Processes\Utilities\FTP Solution\Source\WellsFargoFTP\Activities\WF_PutFile.cs:line 256 Any help will be greatly appreciated. Thanks. |
AmeetJ From: USA Posts: 2 Member Since: 12/08/14 |
posted December 8, 2014 11:13 AM Forum folks, Please ignore this message. I am unable to replicate the error. Maybe it was an "unexpected" end of stream scenario. Thanks. |
Reply | PowerTCP SFTP & SSH for .NET Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |