FTPWebRequest

  • Thread starter Thread starter Guest
  • Start date Start date
Vadym,
I find the diagnostics inadequate. I need to find a port listener. Apache
use to have a good one, but I forgot where to find it.
 
I am finally getting my listener to work. The FTPWebRequest is sending the
command 'Type I', which is an invalid command. Does that have anything to do
with type image. How can I set type to binary or ascii?
 
Vadym,

Does the log below make sense to you.
Why am I entering into passive mode?

System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [220-Cerberus FTP Server Personal Edition
220-UNREGISTERED
220-Welcome to e-list.org FTP Server.

220 Authorized users only. ]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [USER coollist]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [331 User coollist, password please]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [PASS ********]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [230 Password Ok, User logged in]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [OPTS utf8 on]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [220 UTF8 support on]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [PWD]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [257 "/" is the current directory]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [CWD /coollistmlf_update/]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [250 Change directory ok]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [TYPE I]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [200 Type Binary]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Sending
command [PASV]
System.Net Information: 0 : [0296] FtpControlStream#11620857 - Received
response [227 Entering Passive Mode (209,98,235,43,4,20)]
System.Net.Sockets Error: 0 : [0296] Exception in the
Socket#53176533::Connect - A connection attempt failed because the connected
party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond
System.Net Information: 0 : [0296] FtpWebRequest#7714781::(Releasing FTP
connection#11620857.)
 
Hello, Arne!

Set UsePassive property of FtpWebRequest to false.
If you create FtpWebRequest with Uri parameter then UsePassive and UseBinary are equal to true...
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Back
Top