all groups > iis ftp > february 2006 >
You're in the

iis ftp

group:

Question about default directory and error code


Question about default directory and error code Ragnar Midtskogen
2/14/2006 6:49:15 PM
iis ftp: Hello,

I am writing an app to transfer files by FTP and I have a question about
error handling.
The FTP Server account has been set up to use a USB disk drive as the
default directory.
Occasionally the USB port stops, so I need to check if the default directory
is valid by looking at the FTP Server error code when connecting.
I have looked at lists of FTP Server error codes, but I have not found any
that has to do with the default directory.
The drive is used by a live Web application, so I can't easily stop the USB
port and see what code is returned.

If anyone has this info I would appreciate the code to look for.

Ragnar

Re: Question about default directory and error code Ragnar Midtskogen
2/15/2006 7:35:18 PM
Thank you Chris,

I will check for 530.

Ragnar

[quoted text, click to view]

Re: Question about default directory and error code Chris Crowe [ IIS MVP 1997 -> 2006 ]
2/16/2006 12:00:00 AM
I would assume that the FTP server would give an error indicating that the
home directory is not accessable.

Something like this:
[08:48:16] SmartFTP v2.0.993.20
[08:48:16] Resolving host name "ftp.crowe.co.nz"
[08:48:16] Connecting to 203.129.73.229 Port: 21
[08:48:16] Connected to ftp.server.co.nz.
[08:48:18] 220 Microsoft FTP Service
[08:48:18] USER chriscrowe
[08:48:18] 331 Password required for chriscrowe.
[08:48:18] PASS (hidden)
[08:48:18] 530 User ccrowe cannot log in, home directory inaccessible.
[08:48:18] Active Help: http://www.smartftp.com/support/kb/index.php/51
[08:48:18] Cannot login waiting to retry (30s)...


--


Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------

[quoted text, click to view]

AddThis Social Bookmark Button