ftpwebrequest Questions

4

Solved

I am uploading files to ftp using FtpWebRequest. I need to show the status that how much is done. So far my code is: public void Upload(string filename, string url) { FileInfo fileInf = new File...
Chartreuse asked 14/6, 2011 at 8:34

5

Solved

System.Net.WebException: The server returned an address in response to the PASV command that is different than the address to which the FTP connection was made. at System.Net.FtpWebRequest.Check...
Roderic asked 25/4, 2010 at 19:6

2

Solved

I need to upload file via ftp to host. The /home2/travele2 path created on the root of host I can upload file via FileZilla program to the host, but when I try to upload file via website, it gets...
Manger asked 5/10, 2017 at 8:6

4

Solved

I need some help with parsing the response from ListDirectoryDetails in C#. I only need the following fields. File Name/Directory Name Date Created and the File Size. Here's what some of the ...
Nelrsa asked 18/6, 2009 at 15:48

2

Solved

I'm not sure why am I getting this result. I'm running this on a Linux server. (It's my small web site's shared web hosting account.) The files are grouped as follows: and the Another Dir has one ...
Blub asked 5/9, 2017 at 10:17

3

I am trying to make a program that uploads/downloads .exe file to a FTP I tried using FtpWebRequest, but I only succeed to upload and download .txt files. Then i found here a solution for downlo...
Frum asked 28/10, 2012 at 14:46

2

When moving a file to another FTP location you must use RenameTo with the new FTP location. In this example how do you use RenameTo to move to the new FTP location? FtpWebRequest ftpRequest = nul...
Michaels asked 25/2, 2016 at 21:17

3

My code works, but the ProgressBar jumps directly to 100% and the download will go on. When its finished then comes a messageBox to take a Info. I have already changed the buffer size, but it does...
Circumcision asked 23/7, 2017 at 19:46

2

Solved

I'm trying to download a file using FtpWebRequest. private void DownloadFile(string userName, string password, string ftpSourceFilePath, string localDestinationFilePath) { int bytesRead = 0; byt...
Suchta asked 20/9, 2012 at 19:9

1

Solved

I am using .NET 4 C#. I am trying to upload and then download a ZIP file to (my) server. For uploading I have using (WebClient client = new WebClient()) { FtpWebRequest request = (FtpWebRequest)...
Racoon asked 17/6, 2017 at 14:58

2

I have an API that takes in XML and ultimately uploads files based on information in the XML. The uploads are on a schedule (also from XML), and I have tested everything surrounding it and know it ...
Hancock asked 25/4, 2013 at 15:4

5

Solved

I wrote the following code to detect if a directory exists. The DirectoryExists method accepts either a fully qualified or relative path. public bool DirectoryExists(string directory) { try { Ft...
Osteogenesis asked 15/7, 2014 at 15:0

2

I am using CsvHelper. Here I am trying to download a csv file from ftp and write to a class. It's throwing an error - Cannot access a disposed object. Object name: System.Net.Sockets.NetworkStream....
Isbell asked 11/4, 2016 at 23:43

3

Solved

I keep getting a exception when I try to FTP to my Win 2008 Server from C# code using VS2008 as debugger. My test class looks like this: public class FTP { private string ftpServerIP = "192.168....
Arch asked 18/5, 2009 at 8:16

3

Solved

I have an application that does the following: directory listing, download file, download all. I have an issue with getting the file names from WebRequestMethods.Ftp.ListDirectoryDetails. It seem...
Tetrameter asked 11/8, 2014 at 15:3

4

Solved

I'm creating a service to monitor FTP locations for new updates and require the ability to parse the response returned from a FtpWebRequest response using the WebRequestMethods.Ftp.ListDirectoryDet...
Brutus asked 15/8, 2011 at 1:37

4

Solved

I want to delete a folder in FTP and it's files recursively. Any example code do I can implement?
Calciferous asked 1/2, 2011 at 19:19

2

Solved

I have been working at building a feature for a client that will enable them to upload images from www.site1.com, storing the image URL to the database and storing the images to a file on www.site2...
Isochronous asked 12/9, 2012 at 2:23

2

Solved

I'm trying to create a file on an FTP server, but all I have is either a string or a stream of the data and the filename it should be created with. Is there a way to create the file on the server (...
Chandrachandragupta asked 30/8, 2016 at 10:25

3

Solved

Can someone tell me how to change directories using FtpWebRequest? This seems like it should be an easy thing to do, but I'm not seeing it. EDIT I just want to add...I don't have my heart set on ...
Cherianne asked 1/12, 2008 at 6:27

2

Solved

I want to loop on a FTP folder for check if a file has arrived I do: FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://localhost:8080"); request.Credentials = new NetworkCredential...
Hawn asked 4/6, 2016 at 21:57

1

Solved

General Info I'm still in the process of learning C#. To help myself out, I'm trying to create a program that will automatically synchronise all of my local projects with a folder on my FTP server....
Masurium asked 4/5, 2016 at 21:50

1

Solved

I'm trying to get the file size from a remote FTP file through anonymous FTP. public static long GetSize(string ftpPath) { try { FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(new...
Astral asked 22/12, 2014 at 0:30

3

Solved

I am writing FTP client that should work for at least Windows and Linux FTPs. BUt before I proceed, I want answer to these questions. In which order files are listed when FTP ls -lt command is us...
Collectivity asked 19/7, 2012 at 4:27

4

Solved

I have implemented the ability to upload, download, delete, etc. using the FtpWebRequest class in C#. That is fairly straight forward. What I need to do now is support sending arbitrary FTP comman...
Demodulation asked 23/2, 2010 at 19:35

© 2022 - 2024 — McMap. All rights reserved.