Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.1k views
in .NET FTP by (200 points)
Hello!

There's already a topic from a while back with the same subject, but that was never resolved...

I'm using edtftpnet to connect to an EPOS system which is essentially a windows 2000 pc. Data is transferred between our .NET program and the pc using ftp. Our program used to just use the built in windows FTP command which worked perfectly, but to make it more self contained I switched to edtftpnet.

However, whenever I try to use the Get function, the exception 'Command not implemented (Code=502)' is thrown. Incidently Dir and Put also throws the same error. Connecting, logins and changing directories are okay.

As the windows FTP command and other FTP clients such as Filezilla can perform the get function fine, I don't think the problem is with the FTP server.

Any ideas would be greatly appreciated!


Thanks

Alvin

4 Answers

0 votes
by (162k points)
If you can enable logging that should help us to quickly resolve the problem. Also, it could be that one of passive or active mode is supported - try swapping to the other.

If you enable logging in FileZilla and post the output that will also help a lot.

Hello!

However, whenever I try to use the Get function, the exception 'Command not implemented (Code=502)' is thrown. Incidently Dir and Put also throws the same error. Connecting, logins and changing directories are okay.

Alvin
0 votes
by (200 points)
I have tried both active and passive modes to no avail.

With regards to Filezilla, I did notice the same 'Command not implemented' message when it attempted a SIZE command before retrieving a file, but the RETR command completes successfully.

I'm afraid I'm pretty new to edtftp, so I'm unsure how to turn logging on. Does this involve using the Logger class?

Thanks for your help
0 votes
by (51.6k points)
Are you using the new FTPConnection class or the older FTPClient class? FTPConnection has some smarts related to events that invoke the SIZE command before the GET command is invoked, so this may be what you're seeing. We may need to fix this problem. Are you getting an exception? If so, could you please post the stack-trace.

If you are using FTPConnection and you are using the Downloading event, please try avoiding use of this event and seeing if you app works.

W.r.t. logging, please have a look at the Developer's Guide, which is included in the release, for instructions on enabling logging.

Also, what type of FTP server are you using?

- Hans (EDT)
0 votes
by (200 points)
God I feel like an idiot.

It was an active/passive thing after all - I had it in my mind that the default would be active, showing my age eh?


Thanks for your time, and sorry for wasting it!
:oops:

Alvin

Categories

...