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

FTPWebRequest 530 Error: Not Logged in issue

I have been digging through a mountain of posts on how to properly login to FTP in C# but when I actually try, it does not work. Through my readings I have come to think that it is because my username has the 'at' symbol in it. Is this true or is…
Mark Hollas
  • 1,107
  • 1
  • 16
  • 44
0
votes
1 answer

xmltextwrite save file - specify hostname or servername

I am trying to save XML file on a server and send it to another remote over FTP. To create/save XML file, I am using XmlWriter writer = XmlWriter.Create("d:\\path\\to\\folder\\filename.xml"); and upload to FTP. FtpWebRequest reqFTP =…
0
votes
1 answer

WebClient and FtpWebRequest Both Hanging (Timeout)

I'm trying to download a file from a FTP site that uses Passive Mode. I've tried both the FtpWebRequest methods and the WebClient.DownloadFile and DownloadFileAsync methods. Most recently, my code looks like: using (var client = new WebClient()) { …
mquickel
  • 380
  • 3
  • 20
0
votes
2 answers

FTP file upload over SSL c#

Topic: FTP file transfer over SSL im trying to upload file to one of the ftp servers I have but im getting exception while reaching the server server listening on port 990 i think the problem is with implicit/explicit settings can anyone suggest me…
pibcat
  • 94
  • 2
  • 9
0
votes
1 answer

FtpClient and FtpWebRequest — what's the difference?

I have used the FtpClient to connect to the FTP Server,Upload a file and download a file from the FTP server. I found FtpWebRequest which does the same functionality as of FtpClient. Could anyone please let me know the difference between these…
0
votes
2 answers

FtpWebResponse GetResponse() gives "The remote server returned an error: (550) File unavailable (e.g., file not found, no access)."

I have a Win Form with a picture gallery that uses FtpWebRequest to upload pictures, but after changing to .Net 4.0 I suddenly get 550 error. The error occurs both when uploading files and listing directory. As seen in my example-code I have…
baddaydaddy
  • 604
  • 8
  • 25
0
votes
2 answers

FtpWebRequest download text file: CR/LF removed

I am using FtpWebRequest to download files, but in all text files all \r\n are removed when downloaded. What am I doing wrong? Uri u = new Uri(msg); FtpWebRequest request = (FtpWebRequest)WebRequest.Create(u); request.Method =…
gman
  • 45
  • 5
0
votes
1 answer

Why is my ftp upload method so slow?

I have written a console app to download files from an FTP and then upload to a different FTP location. The downloading on the files takes around 10 seconds, but the upload around 6 minutes. There are 256 files each around 5-30KB in size. So very…
Dan Sewell
  • 1,278
  • 4
  • 18
  • 45
0
votes
1 answer

ftp image upload to image folder only works on local host, gives error during live test

I'm new to FTP and asp.net my code works only during local host test however during live test on go-daddy i get error. any help would be great thank you. I'm currently hosting 2 web site all the pages and code is in AMUS folder Unable to connect to…
Neo
  • 481
  • 2
  • 9
  • 24
0
votes
2 answers

uploading large file using ftpwebrequest upload wont complete

My software i designed uploads files using ftp to my sever I'm using the ftpwebrequest to do all uploading. When uploading a file 700mb it uploads about 500mbs then stops, it works fine when uploading smaller files the smaller files upload…
0
votes
3 answers

How can I combine my FTP queries?

My program has several times where it queries an FTP server to read and upload information. How can I combine all these into one FTP class to handle everything? private static void UploadToFTP(string[] FTPSettings) { try { …
rshea0
  • 11,769
  • 9
  • 27
  • 40
0
votes
2 answers

Parsing the output of FtpWebRequest

I can see that there are 2 types of responses: Windows Unix Examples "08-25-12 06:52AM 139874418 3.03.06P13.12NB.rar" "-r-xr-xr-x 1 owner group 1 Jun 3 1999 NotCurrentYear.txt" I need to parse it and I…
Akshay J
  • 5,362
  • 13
  • 68
  • 105
0
votes
2 answers

FTP Directory/SubDirectory listing using edtFTPnet,C#

On my FTP Server I have the following folder structure - Parent Directory -a.txt -b.txt.old -SubDirectory1 -c.txt -NestedSubDirectory1 -d.txt -SubDirectory2 -e.txt -f.txt.old The number of SDs are not fixed.…
Jovel JV
  • 11
  • 1
  • 4
0
votes
1 answer

Holding a Session when Connecting to FTP server C#

I'm have been working on an application witch uploads and downloads multiple files from a FTP server. My problem is that each and every time i want to download a single file, i need to connect to the FTP server, and check the certificates. This is…
Lahib
  • 1,305
  • 5
  • 34
  • 62
0
votes
2 answers

Uploading files to an FTP server

The purpose of my application is, it has to uploade files to a FTP server, and then move the local files to an Archive folder. Here is my code: public void UploadLocalFiles(string folderName) { try { …
Lahib
  • 1,305
  • 5
  • 34
  • 62