Topic "A null key is not allowed in a hash literal."

Author Message
Tolly

Guest


I am automating my directories sync but when I try to connect using .Net assembly via powershell to the external SFTP site I get this: A null key is not allowed in a hash literal.
Is this because I am using IP adddress in here: $sessionOptions.HostName = "x.x.x.x"
I am using Version 5.7.6 (biild 5874)

Thank you,
T.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I assume you did not initialize the $sessionOptions variable.

Show us your complete script.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License