Questions tagged [ftpwebrequest]

FtpWebRequest is a concrete class for .NET Framework applications that provides an FTP-specific implementation of the abstract WebRequest class. Related tag: [webrequest].

The FtpWebRequest class provides an FTP-specific implementation of the WebRequest class.
Implements a File Transfer Protocol (FTP) client.

MSDN documentation for FtpWebRequest.

612 questions
0
votes
0 answers

Why Ftp Downloading is so slow with c# / FtpWebRequest

I'm using the FTP function in c# in order to download somes files. My problem is that the download is slow. I don't have any problem with Filezilla, and my connection is OK. I'm thinking about the FTP functions implementations, here is my code : …
Walter Fabio Simoni
  • 5,671
  • 15
  • 55
  • 80
0
votes
0 answers

StreamReader cannot read files with "#" in their name

I'm using this code to read files from ftp server: static List GetDirectory(String DirectoryName) { try { var ConnectionString = String.Format("{0}/{1}", Connection.GetFTPConfig.FTPSourceAddress,…
Soheila Hg
  • 569
  • 2
  • 7
  • 25
0
votes
2 answers

FTP error: (553) File name not allowed

I am trying to ftp a file but i get the following error: The remote server returned an error: (553) File name not allowed. at System.Net.FtpWebRequest.SyncRequestCallback(Object obj) at System.Net.FtpWebRequest.RequestCallback(Object obj) at …
user1732364
  • 925
  • 4
  • 28
  • 58
0
votes
0 answers

Type or namespace FtpWebRequest could not be found in MonoDevelop

I have a C# Windows Forms application on MonoDevelop. I want to upload and download files to an FTP location. While trying to use FtpWebRequest, I get compile error: "type or namespace could not be found. Are you missing a using directive or an…
0
votes
2 answers

Remote server error: 150 Opening Binary mode data connection

I am trying to create a small console application that downloads files from a ftp server through Explicit FTP over TLS. I have create these applications before but i am getting an error with this one. I keep Getting this error: The Remote Server…
Lahib
  • 1,305
  • 5
  • 34
  • 62
0
votes
1 answer

C# FtpWebRequest File version check

I am trying to use C# FtpWebRequest to download a file. I dont want to download unless the file version in the download site is greater than the current file version. How do i verify/get the file version on the remote server?
chethan
  • 1
  • 1
  • 1
0
votes
1 answer

How to upload a file to FTP server using Visual C++

I am writing an application that aims to upload file from local system to FTP server using predefined Ftp credentials using Visual C++ 2010. I haven't find proper help via google. Kindly advise me with a solution or work around.
0
votes
1 answer

Can't upload to IIS Ftp website with different host using FtpWebRequest: 530 Valid hostname is expected

I have a command line app that uploads to FTP. I've used it without problems, but know I have 2 FTP sites that have different hostnames and I seems that the FtpWebRequest don't send something to the server. Using a ftp client (Beyond Compare) I have…
Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206
0
votes
1 answer

Error while Uploading file to FTP server C#

I am trying to upload a .txt file to a ftp server. But i am having some issues. I keep getting this error: The remote server returned an error: (553) File name not allowed. This always happens on this line: Stream writer =…
Lahib
  • 1,305
  • 5
  • 34
  • 62
0
votes
1 answer

Error while uploading a text file to FTP server C#

I am building a simple application that uploads a .txt file to a FTP server. I have done this before and i am using the same code as i used for the other application. this is my code: string localFilePath =…
Lahib
  • 1,305
  • 5
  • 34
  • 62
0
votes
2 answers

System.Net.FtpWebRequest GetDateTimestamp call dies

Following test works... public void test1() { string server="ftp://myserver.com/dev"; string userName="myusername"; string password="mypassword"; FtpWebRequest req = (FtpWebRequest)WebRequest.Create( server ); …
0
votes
1 answer

Get the list of files from FTP server with specific search pattern

I want to get the list of files from FTP server with specific search pattern ( Ex: get all the files having pattern as "*.txt") and download these files only using C#.net. Below is the code returning list of files from FTP server, please suggest the…
Murtaza Badshah
  • 211
  • 2
  • 5
  • 11
0
votes
1 answer

I/O error opening pdf after uploading to ftp

So Im trying to upload a file to my ftp server. Every things seems to work like expected but when I open the file from from the ftp I receive a I/O error. The local file works just fine. Some how the file gets corrupt after uploading. I found a…
Florian Schaal
  • 2,586
  • 3
  • 39
  • 59
0
votes
1 answer

Active/Passive FTP Transfer using FTPWebrequestclass

I am transferring files using FtpWebRequest class in C#; in that class there is a property ftpobject.usePassive = true (or) false; I meant it as if use passive is false then it is "Active" if use Passive is true then it is "Passive" what i…
karthik
  • 4,485
  • 8
  • 30
  • 45
0
votes
2 answers

Running a C# console app with FTP operations from SQL

I have a C# .Net console app performing an ftp copy runs from the cmd command prompt, but when run from a SQL agent job or from SQL server management studio, the FTP part of the app fails: declare @cmd varchar(200) select @cmd =…
chridam
  • 100,957
  • 23
  • 236
  • 235