WebException message vs. Response.StatusDescription on FtpWebRequest

Recently one of the reader asked an interesting question, he was using FtpWebRequest with MakeDirectory method, if directory already exist then application received the WebException with message.”The remote server returned an error: (550) File unavailable (e.g., file not found, no access).”. This exception message appears to be very generic and not helping the user to figure out what…

1

Using FtpWebRequest to do FTP over SSL

Last few weeks we were busy to get Whidbey Beta-2 bits ready for release. If you are looking for some API where your application could talk to a FTP server, which supports SSL. FtpWebRequest under System.Net namespace is your solution. Here I will just point to SSL specific features of the class Enabling FtpWebrequest to use…

31

Resuming broken file download with FtpWebRequest class

This post is valid for .Netframeworks 2.0 When we are downloading a large file from ftp site and connection got broken in between, on next attempt you would be interested in downloading the rest of the file content instead of full file. FtpWebRequest class have a nice way to meet this requirement. You could use the…

20

Sample code for parsing FtpwebRequest response for ListDirectoryDetails

This posting is valid for .Net frameworks 2.0 (Currently released as Whidbey Beta1) ResponseStream of FtpWebResponse provides the raw data bytes to the user, some of you had asked that it would be more useful to provide methods which return list of directory and files on ListDirectory request to the server. Current .Net frameworks doesn’t support this, so here is…

24

Understanding the basic of FtpWebRequest programming model on .Net frameworks

A long standing complain from user of .Net frameworks was that it doesn’t have support for popular ftp protocol. This concern is going to addressed in .Net frameworks 2.0. Recently released Whidbey Beta-1 contains FtpWebRequest, FtpWebResponse classes to support FTP protocol. WebRequest/ WebResponse Model .Net frameworks support for FTP protocolo is implemented on top of WebRequest/WebResponse…

13