Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Small File Upload Problem

$
0
0

I am using the 1/4 release (file date) of the library and I am having an issue uploading files which are under 20k.

Could not properly upload file \APP03\ImportExport\NJ\180515\NJ_0615_UPL_130204_101618.exp to SFTP Server mft.amwater.com. Exception: Connection was lost
at Renci.SshNet.Sftp.SubsystemSession.WaitHandle(WaitHandle waitHandle, TimeSpan operationTimeout)
at Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, SftpUploadAsyncResult asynchResult, Flags flags)
at Renci.SshNet.SftpClient.UploadFile(Stream input, String path, Boolean canOverride)
at RouteManager.General.SFTP.pushFileToFTP(String fullFileName)

Larger than 20k seem to work and I upload about a 150 files a day this way. I am doing a file.read and passing the stream to uploadFile.

Pushing the same file through FileZilla or other SFTP clients work fine.

What other steps can I take to diagnose the source of this problem?

Thanks for any suggesions
Rich


Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>