winscp.exe has to exist as a real file, at the moment you call the
So while you can store the
winscp.exe to your application resources, you have to extract it somewhere (e.g. to a temporary folder), and set the
Session.ExecutablePath accordingly, before you call the
Inspired by your question, I have added instructions for Embedding WinSCP executable as resource to the assembly documentation.