Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

dannygoor

You cannot call a method on a null-valued expression.

I keep getting the error: You cannot call a method on a null-valued expression.

Even using a basic script like this;

$transferOptions = New-Object WinSCP.TransferOptions
$transferResult = $session.GetFiles($sourcePath, $destPath, $False, $transferOptions)
$transferResult.Check()