Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.7k views
in .NET FTP by
When running the rundemo.exe on ftp.microsoft.com, I get the following:

1.1.3\demo>rundemo.exe ftp.microsoft.com anonymous bob@msn.com
INFO [Demo] 16 Dec 2004 08:24:43.859 : Connecting
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 16 Dec 2004 08:24:43.875 : Connecting to 207.46.133.140:21
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.203 : 220 Microsoft FTP Service
INFO [Demo] 16 Dec 2004 08:24:47.203 : Logging in
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.203 : ---> USER anonymous
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.343 : 331 Anonymous access allowed, send identity (e-mail name) as password.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.343 : ---> PASS ********
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.484 : 230-This is FTP.Microsoft.Com
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.812 : 230 Anonymous user logged in.
DEBUG [Demo] 16 Dec 2004 08:24:47.812 : Setting up passive, ASCII transfers
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.812 : ---> TYPE A
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.953 : 200 Type set to A.
DEBUG [Demo] 16 Dec 2004 08:24:47.953 : Directory before put:
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:47.953 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 16 Dec 2004 08:24:48.125 : 227 Entering Passive Mode 207,46,133,140,229,9).
DEBUG [Demo] 16 Dec 2004 08:25:09.125 :    at System.Net.Sockets.Socket.Connect(
EndPoint remoteEP)
   at EnterpriseDT.Net.StandardSocket.Connect(EndPoint remoteEP)
   at EnterpriseDT.Net.Ftp.FTPControlSocket.NewPassiveDataSocket(String ipAddress, Int32 port)
   at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocketPASV()
   at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocket(FTPConnectMode connectMode)
   at EnterpriseDT.Net.Ftp.FTPClient.Dir(String dirname, Boolean full)
   at Demo.Main(String[] args)


Any ideas? Thank you very much.

3 Answers

0 votes
by (162k points)
I just ran the 1.1.3 demo against ftp.microsoft.com and the listing worked fine (except of course that putting a file readme.txt will fail as I don't have write permission in main directory).

I did however need to change the code to use active mode rather than passive mode - are you sure you don't have a firewall that is denying use of passive mode?

When running the rundemo.exe on ftp.microsoft.com, I get the following:

[snip]

Any ideas? Thank you very much.
0 votes
by
I know we have firewalls; I thought I did try Active mode and received an error also. If I use just standard FTP from the CMD prompt, goto ftp.microsoft.com using the same id/pwd, then do a DIR, I get a listing of all the files; well, directories. That's why I didn't feel it was a firewall issue.

But I'll try Active and see what happens...

Thank you.

I just ran the 1.1.3 demo against ftp.microsoft.com and the listing worked fine (except of course that putting a file readme.txt will fail as I don't have write permission in main directory).

I did however need to change the code to use active mode rather than passive mode - are you sure you don't have a firewall that is denying use of passive mode?

When running the rundemo.exe on ftp.microsoft.com, I get the following:

[snip]

Any ideas? Thank you very much.
0 votes
by
That's what it was. I also had the connectmode set AFTER the login instead of BEFORE. Duh!

Thank you very much!

I know we have firewalls; I thought I did try Active mode and received an error also. If I use just standard FTP from the CMD prompt, goto ftp.microsoft.com using the same id/pwd, then do a DIR, I get a listing of all the files; well, directories. That's why I didn't feel it was a firewall issue.

But I'll try Active and see what happens...

Thank you.

I just ran the 1.1.3 demo against ftp.microsoft.com and the listing worked fine (except of course that putting a file readme.txt will fail as I don't have write permission in main directory).

I did however need to change the code to use active mode rather than passive mode - are you sure you don't have a firewall that is denying use of passive mode?

When running the rundemo.exe on ftp.microsoft.com, I get the following:

[snip]

Any ideas? Thank you very much.

Categories

...