Questions tagged [ftpwebresponse]

A .NET Framework class, representing a response from FTP server, used by FtpWebRequest

Documentation: https://msdn.microsoft.com/en-us/library/system.net.ftpwebresponse.aspx

43 questions
0
votes
1 answer

When receiving information about a file (via the link), an error 404 occurs UWP

Before downloading a file from a link, I need to get some of its data (name, size, Content-type etc.) WebResponse response = null; using (token.Token.Register(() => client.Abort(), useSynchronizationContext: false)) …
0
votes
0 answers

FtpWebRequest ProtocolViolationException

Trying to create an ftp download async function with IProgress and cancelation token, but I'm getting a "ProtocolViolationException: Operation is not valid due to the current state of the object" on GetRequestStreamAsync() function I was using this…
0
votes
2 answers

C# Program gets stuck in FtpWebResponse after server disconnects

I have a C# program that checks a ftp directory for new files every x seconds. If a new file is found it is downloaded. That works fine. If I start the program without running the ftp server the program loops and returns a message that the server…
0
votes
1 answer

ftp web response date time format

I have tried with Ftp Web Response to access files and directory details in c# with ASP.Net. System.Net.WebRequestMethods.Ftp.ListDirectoryDetails I got the response like below from FTP server: 01-27-17 06:54AM 14613 A J DOHMANN…
Balaji V
  • 3
  • 2
0
votes
0 answers

What is causing timeout at GetResponse()

I am trying to access an FTP server via a console application written in c#. My application has a time-out at FtpWebRequest.GetResponse() -- the first line inside the try/catch. I can access the FTP server via Filezilla with the credentials, and the…
Dan R
  • 33
  • 8
0
votes
1 answer

How to recover a broken FTP download with FtpWebRequest

Some files our system works are big(>1GB) so i need to recover from broken FTP downloads. If i do Seek over the FtpWebResponse stream i get an error saying the stream doesn't support this. Any way to accomplish this using normal FtpWebResponse .net…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
0
votes
1 answer

FTP Upload and Download - getting either 227 or 500 error

I want to upload and download a file using FTP. I managed to put together the following code for my upload and download methods. I am stuck at the same place. If I use: ftpRequest.UsePassive = false; FtpWebResponse response =…
LostCause
  • 151
  • 1
  • 11
0
votes
0 answers

The underlying connection was closed. The server committed a protocol violation vb.net

I need help, none i can't seem to find a solution to my problem. I'm trying to create a directory in FTP Server: Dim request As FtpWebRequest = FtpWebRequest.Create("ftp:\\*******") Dim creds As NetworkCredential = New…
a ridi
  • 125
  • 2
  • 13
0
votes
1 answer

difference between uploadfile and uploadfilewithuniquename in WebRequestMethods.Ftp

Two questions here : 1)difference between WebRequestMethods.Ftp.uploadfile and WebRequestMethods.Ftp.uploadfilewithuniquename? 2)When i do an upload file using the code below for an already existing file would it override the file.And is it safe to…
Raman
  • 216
  • 3
  • 15
0
votes
0 answers

Upload file to FTP server without read permissions

I want to upload and store some of my backups to another server via an FTP account. This account has only read permissions (no write permissions), to prevent attackers from deleting my backups. So I started to code the solution with full permissions…
No1Lives4Ever
  • 6,430
  • 19
  • 77
  • 140
0
votes
0 answers

Application Hangs on FTPWEBRequest Upload if Net connection lost

Hey I've been looking for a solution to throw a web exception if net connection is lost, I put in ReadWriteTimeout to be 8 seconds, but still doesn't throw an exception when I pull the plug. I changed Transfer timeout on filezilla server to 0. Is…
0
votes
0 answers

FtpWebRequest ListDirectory truncated at 10,000 files

I am trying to get an FTP directory listing. I have more than 10,000 files in my folder and it seems that the list I get back is truncated at 10,000 files. Is there anything I can do so that I can get all the files back? FtpWebRequest request =…
Rob Sedgwick
  • 4,342
  • 6
  • 50
  • 87
-1
votes
1 answer

FTP file To Server

I am currently using FTPwebRequest to move a local file over to a server. I am able to FTP to the root directory at ftp://ftp.xxxx.com. But, whenever I try to FTP the file to a folder within that directory like: ftp://ftp.xxxx.com/firstfolder…
Hunter Zolomon
  • 97
  • 1
  • 2
  • 9
1 2
3