Topic "A constructor was not found. WinSCP.TransferResumeSupport"

Author Message
[View user's profile]

Joined: 2014-02-28
Posts: 1
Location: South Africa
hi there,
I am writing a PowerShell script to download a file from an FTP site. I have loaded the assembly.

The script works fine to download a file.
But each time I try to create a new TrasnferResumeSupport Object.
With this:

        $resumeSupport = New-Object WinSCP.TransferResumeSupport

I get this error:
A constructor was not found. Cannot find an appropriate constructor for type WinSCP.TransferResumeSupport.

Am I missing something here?

Thank you.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
You cannot create an instance of TransferResumeSupport.

Just access existing instance using TransferOptions.ResumeSupport:

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License