I have searched the forum and other sites, and tried a few things that were suggested, but I can't shake this problem. When I use the GUI tool, my SFTP uploads work fine, but when I call the .NET assembly from my Powershell script it always times out in the middle of the upload... (the test file I've been using is 708 Kb).
I have matched the settings in the script to those in the GUI as closely as possible, and already tried the suggestion found here of setting SendBuf to 0. I am attaching my script, and logs from both the GUI and the script. Any ideas or insights will be greatly appreciated!