Re: mysession.open creates an error
Please start by read this:
https://winscp.net/eng/docs/library_install#installing
https://winscp.net/eng/docs/library_install#installing
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.