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
0
votes
1 answer

WinSCP .NET assembly does not recognize FTP link/URL in Session.PutFiles

Uploading some txt files from a local folder to a specific FTP address (I'm using this, ftp://ftpint/sales/to_system/) is one of my daily routines. I'm using ZappySys for automate this routine, but my company doesn't want to use it anymore, so i…
SaliOzkan
  • 9
  • 2
0
votes
1 answer

WinSCP error while performing directory Sync

I've developed a .Net console application to run as a webjob under Azure App Service. This console app is using WinSCP to transfer files from App Service Filesystem to an on-prem FTP Server. The job is failing with below error: Upload of "D:\…
mamhh
  • 85
  • 1
  • 9
0
votes
2 answers

How to append text to a log file with WinSCP/C#

I'm trying to add text to a text file in a FTP server, but it overwrites it instead of appending, how to solve this ? SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Ftp, HostName = "www.site.com", UserName =…
captain_majid
  • 140
  • 13
0
votes
1 answer

WinSCP.Net, folder is not copied from remote to local

I have been using WinSCP to download files, periodically, from a Unix server to Windows server and it has been working with no issues. I also check if remote file is older or already exists (don't copy). Now, I have to do the same but this time I…
NoBullMan
  • 2,032
  • 5
  • 40
  • 93
0
votes
0 answers

WinSCP in web application - connect() fails

I am working on a web application where one function is to connect to a remote Linux server using SFTP, download some log files, parse and display the results. I am using WinSCP to achieve this. I got this working and tested it running from VS in my…
NoBullMan
  • 2,032
  • 5
  • 40
  • 93
0
votes
0 answers

Why would BizTalk 2016 kill custom pipeline component threads?

I have a BizTalk Custom Pipeline Component that writes an SFTP file (using SSH.net), triggered by an SFTP (WinSCP) receive location. The code within the Retry occasionally (around half the time) does not hit either the "Success" nor the logging…
Kaido
  • 3,383
  • 24
  • 34
0
votes
1 answer

WinSCP gives error that my hostkey fingerprint is not correct but works with same fingerprint randomly

I am using C# WinSCP library. While connecting, it gives me error that fingerprint I am using is not correct. However that is the correct one. And when I run the same function again, it runs and gets connected. So some time it connects and sometime…
Raas Masood
  • 1,475
  • 3
  • 23
  • 61
0
votes
1 answer

c# Is it possible to download a particular file from a zip file present in sftp

I'm using the below code(WinScp nuget) to connect to Sftp server, and it works well. I was able to list the files in present in Sftp server. SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Sftp, HostName =…
Pரதீப்
  • 91,748
  • 19
  • 131
  • 172
0
votes
1 answer

Is there a way to only get files in a date range over FTP?

We have a sync process that is daily making sure we have all files from a remote SFTP but as time goes on, we're having to download all files just to check that we already file copies in the database by content hash. Is there a way, let's say using…
djbyter
  • 763
  • 8
  • 28
0
votes
1 answer

WinSCP .NET Assembly custom list that defines ASCII transfer when TransferMode == Automatic

This is a solution if you want to control which files will automatically be transferred by ASCII or BINARY without writing control statements for WinSCP in C#, you have to create a new session and on that session…
0
votes
1 answer

Delete files after upload with WinSCP .NET assembly

My script is very simple // Setup session options SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Sftp, HostName = conHostName, UserName = conUserName, Password = conPasswort, SshHostKeyFingerprint =…
user2632918
0
votes
1 answer

Why on RemoteFileInfo moving back and forward on the same Session the FullName repeat it self on the FullName value property?

I have a question that I have no idea how to ask in a simple way so I will do and introduction fist and the question at the end I hope that you get the idea Using RemoteFileInfo C# class you get the files in the location and two additional records…
Albert Torres
  • 163
  • 2
  • 15
0
votes
1 answer

Problem executing REMOTE powershell script using WinSCP via SQL Server Agent Job

On SQL Server 2016 I have setup a job that executes a powershell script that resides on a remote app server. When I execute the powershell script via the app server using the Powershell ISE app my script works without issue. When I had setup the…
Melinda
  • 1,501
  • 5
  • 25
  • 58
0
votes
1 answer

sudo user conversion

I am trying to use WinSCP using Visual Studio. I am able to login to the remote machine using my own credentials using the WinSCP code. After login, I would need to do a sudo user to move another file. How to connect to a different user within…
venkat14
  • 583
  • 3
  • 12
  • 34
0
votes
0 answers

Terminated by user. Copying file fatally failed. Copying files to remote side failed

My .net app based on winscp stopped working. While uploading a bigger file, I get WinSCP.SessionRemoteException HResult=0x80131500 Nachricht = Terminated by user. Copying file 'test.mp4' fatally failed. Copying files to remote side failed. …
Fabien Biller
  • 155
  • 1
  • 1
  • 10