VB code doesn't transfer files, why?
I've installed winscp (Version 4.3.2_bld_1201) on my desktop (Win XP) and it works fine (I am able to connect to a secure SFTP address, transfer files, etc.). However, when I use WinSCP in my VB code it doesn't move any files up to the ftp site. I believe it connects but can not be sure. The log is created successfully but has no real data in it (just the XML header).
A few points:
* When successfully connecting with the GUI, I have to accept the key being offered by the target sftp site (I just click OK). I'm not sure if my code does this...I haven't coded anything along those lines except for the "option confirm on" in my VB code.
* When running the VB.Net code there's no errors when the winscp object starts, connects or uses the PUT command.
* The log file (log.xml) is created by the VB code , however it only has the basic pre-connection header in it after the whole process finishes.
* The winscp.exitcode always resolves to something other than 0 (an error) but .NET never raises an error.
Note: When successfully connected using the GUI, SFTP-3 is shown as the protocol being used.
A few points:
* When successfully connecting with the GUI, I have to accept the key being offered by the target sftp site (I just click OK). I'm not sure if my code does this...I haven't coded anything along those lines except for the "option confirm on" in my VB code.
* When running the VB.Net code there's no errors when the winscp object starts, connects or uses the PUT command.
* The log file (log.xml) is created by the VB code , however it only has the basic pre-connection header in it after the whole process finishes.
* The winscp.exitcode always resolves to something other than 0 (an error) but .NET never raises an error.
Note: When successfully connected using the GUI, SFTP-3 is shown as the protocol being used.