Topic "New-Object : The member "Speed" was not found for the specified .NET object."

Author Message
Stealthmatt

Guest


I used the latest version to create a powershell code output, and then downloaded the latest version of the .net library.

Now when I run it, I get this error

New-Object : The member "Speed" was not found for the specified .NET object.

try
{
# Connect
$session.Open($sessionOptions)

# Set up transfer options
$transferOptions = New-Object WinSCP.TransferOptions -Property @{
Speed = 8192
}

# Transfer files
$session.PutFiles("E:\SQL_Server_Backups\file.rar", "/RAR/*", $False, $transferOptions).Check()
Stealthmatt

Guest


Looks like its generating the code with "Speed" instead of "SpeedLimit"

TypeName: WinSCP.TransferOptions
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
FileMask Property string FileMask {get;set;}
FilePermissions Property WinSCP.FilePermissions FilePermissions {get;set;}
OverwriteMode Property WinSCP.OverwriteMode OverwriteMode {get;set;}
PreserveTimestamp Property bool PreserveTimestamp {get;set;}
ResumeSupport Property WinSCP.TransferResumeSupport ResumeSupport {get;set;}
SpeedLimit Property int SpeedLimit {get;set;}
TransferMode Property WinSCP.TransferMode TransferMode {get;set;}
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1543
Advertisements

You can post new topics in this forum

Search

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