Re: Host key wasn't verified using WinSCP .NET assembly
I have added topic to the FAQ:
https://winscp.net/eng/docs/faq_hostkey
https://winscp.net/eng/docs/faq_hostkey
What error? Please be more specific.
I've tried myself now. Removing the "set" resolved the "Object required: 'SessionLogPath'" error.
I do not know VB much, but I believe you should not use Set to set the SessionLogPath as it is a string, not an object.
Do just:
session.SessionLogPath = "c:\scp2.log"
Sorry, SessionLogPath. Please post an example code that fails.
Set the Session.SessionLogFile before calling Session.Open
Please, set Session.SessionLogPath and post or email me the log.