Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

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

Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/1543
Stealthmatt

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;}
Stealthmatt

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

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()