Questions tagged [winscp-net]

The WinSCP .NET assembly (winscpnet.dll) is a .NET wrapper around WinSCP's scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell and SQL Server Integration Services (SSIS).

The WinSCP .NET assembly winscpnet.dll is a .NET wrapper around WinSCP's scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell and SQL Server Integration Services (SSIS).

For details see:

The assembly is also exposed to COM, and as such it can be used from variety of other programming languages and development environments--e.g., WSH-hosted active scripting languages like JScript and VBScript, Visual Basic for Applications (VBA), Perl, and Python.

For details see:

The library is primarily intended for advanced automation tasks that require conditional processing, loops or other control structures for which the basic scripting interface is too limited. The library is not a general purpose file transfer library. It particularly lacks support for interactive processing and as such it is not well suited for use in GUI applications.

Use tag for all WinSCP related questions, along with .

339 questions
-1
votes
2 answers

How to fix WinSCP error 'System.Xml.XmlException: Root element is missing' on SFTP Port

I'm getting the following error on our BizTalk 2016 instance with a SFTP receive port when it polls to connect to a SFTP site: The Messaging Engine failed to add a receive location "OURPORTNAME" with URL…
Andy Midd
  • 79
  • 9
-1
votes
1 answer

WinSCP .net assembly not honoring include file mask

I'm using WinSCP .net assembly to download some files off of a ftp server. I want to restrict the download to Only the top level directory, ie. no sub directories Only .csv files To accomplish this I'm using the include/exclude file masks…
reggaemahn
  • 6,272
  • 6
  • 34
  • 59
-1
votes
2 answers

Error on Session.Open in Winscp - VBA

Hi I am trying to upload the file in WinSCP via VBA. the mySession.Open mySessionOptions got Error - Network error connection to "103.231.8.66" time out. i googled but didn't get idea. any suggestion would appreciated Sub test() Dim wbs As…
Ashok
  • 284
  • 2
  • 5
  • 23
-1
votes
1 answer

Get database from /var/lib/mysql

I am trying to get a database from a Linux box and am doing it using WinSCP .NET assembly with the following code: SessionOptions sessionSettings = new SessionOptions { Protocol = Protocol.Scp, HostName = "******", UserName = "*****", …
Lotzi11
  • 477
  • 1
  • 13
  • 26
-1
votes
2 answers

Put long running method into task, showing new form meantime and closing it once the task completes

My application has some long running method which taking some time to be finalised therefore i decided to push it into the separate task then meantime show some new form as ShowDialog which inside is placed hourglass animation and then this form…
Arie
  • 3,041
  • 7
  • 32
  • 63
-1
votes
1 answer

Load picture from FTP to PictureBox with WinSCP .NET assembly

I am using WinSCP .NET assembly to transfer files by FTP. Couple days ago I developed new module to show pictures in PictureBox control. What I would like to achieve is to list picture's paths inside listbox or whatever else and then when click on…
Arie
  • 3,041
  • 7
  • 32
  • 63
-2
votes
1 answer

Object reference not set to an instance of an object when opening WinSCP session

I have a PowerShell script that uses the WinSCP .Net library to get some files from a FTP server. The script runs automatically over night on a server from a administrator account using Task Scheduler. The problem is that sometimes (it does not have…
MrGuwee
  • 1
  • 3
-7
votes
2 answers

Can this code have bottleneck or be resource-intensive?

It's code that will execute 4 threads in 15-min intervals. The last time that I ran it, the first 15-minutes were copied fast (20 files in 6 minutes), but the 2nd 15-minutes are much slower. It's something sporadic and I want to make certain that,…
Joe_Hendricks
  • 746
  • 4
  • 16
1 2 3
22
23