Command not implemented for that parameter err (General questions)
Hello,
I have a problem with an in-house application that uses wodftpdlx dll.
This application is used to connect to a SFTP server and test connectivity availability and speed by sending a 1MB file and reporting any error encountered.
This application works perfectly under windows 2000 and XP. I didn't have the opportunity to test it under Vista but right now it doesn't work under Seven.
Connection seems to work OK but as soon as it tries to upload the test file, I get the following error: Command not implemented for that parameter (40504). I tried sending the file directly with a SFTP client, it works, so I don't think the environment has to be blamed (it is connected to a gateway computer directly connected to an xDSL line).
Is wodftpdlx compatible with Windows Seven ? What could cause this error? I tried running the application in normal mode and in administrator mode, result was the same... [:sad:]
Any help will be welcome.
Re:
Hi Ben,
Are you sure you're using FTP mode? You mentioned that you were using SFTP, but the error you mention can only be returned in FTP protocol.
What command does this occur for? Can you perhaps dump FTPReply (Command and ReplyText) and post it?
Also, did you try doing the same using some other client, i.e. FileZilla, or FTP Voyager?
Which version of the component do you use?
We use the component under Win7 daily, so I'm 100 sure it has to work.
Regards,
Damba
Re:
Thanks for your answer.
Are you sure you're using FTP mode? You mentioned that you were using SFTP, but the error you mention can only be returned in FTP protocol.
I'm sure. I set up Protocol option to FTPSwithdata.
What command does this occur for? Can you perhaps dump FTPReply (Command and ReplyText) and post it?
The PutFile(local path, remote path) command trigger the error.
State before that is 4 (connected).
How can I get the reply text?
Also, did you try doing the same using some other client, i.e. FileZilla, or FTP Voyager?
I successfully uploaded a file to this server with Filezilla on the very same computer, yes (but I had trouble getting the folder listing for an unkwnown reason).
Which version of the component do you use?
Version is 2.6.3.268. I use it in a VB6 program (yes, I know, it is quite an outdated technology but I don't have a choice...)
Thanks for your time.
Re:
Ben,
FTPSwithdata is completely different protocol then SFTP.
In order to get ReplyText, you need to implement FTPReply Event. It's one of the parameters provided there.
Also, the version that you're using is from 2006, which is *really* old. If you could update, that would be great, since were made in that period, which perhaps resolve the issue you're experiencing.
Regards,
Damba
Re:
Ok, I tried the latest version (the demo version only is available on the website, how do we get the production version when we are registered customer?).
Error remains.
The following line [code]FtpDLX.PutFile C:UsersSevenTestDesktopConfiguration est.tst , users estutil/test.tst [/code]
generated the following reply code and text:
[code]200 200 Type set to IMAGE.
550 550 users estutil/test.tst: folder not found
250 250 CWD successful
550 550 file does not exist
504 504 Invalid PORT address[/code]
and generated the error 40504 (Command not implemented for that parameter)
Also I didn't know SFTP was different from FTPS (I still have lot to learn about FTP protocol).
I noticed the second parameter seems weird (last antislash replaced by a slash) but I tried to replace it, it didn't change anything. And as already said, this works on the other w2k and wxp I tried.
Re:
Ben,
Can you please try setting StrictHost property to true? Does that help?
Also, is there any reason why you're using PORT? What happens if you try using Passive mode?
Regards,
Damba
Re:
Ben,
Can you please try setting StrictHost property to true? Does that help?
Also, is there any reason why you're using PORT? What happens if you try using Passive mode?
Regards,
Damba
Strichost didn't change anything, but you were right, when I set up passive mode it worked perfectly.
I used the non passive mode because transfer didn't work on the w2k computer (the Internet gateway) in passive mode. As my knowledge of FTP transfer is quite limited, I just noticed that it worked with passive mode disabled on it.
I guess this is not the case for this computer, then. Funny because the Internet connexion - gateway apart - and the FTP servers are the same.
Good thing I made this setting configurable in my application GUI...
I will use the new version of the component though. How can I retrieve the latest production version?
Thanks for your help, it is much appreciated.
Re:
Ben,
When PORT is used, then server initiates connection towards client, and client needs to provide server IP and port where to connect. However, if client is behind a firewall or NAT, then this mode is usually impossible to use.
I assume that client in this case sent PORT command along with local (LAN address) which server interpreted as invalid.
In order to get full, licensed version you can request it here: http://www.weonlydo.com/index.asp?update=1
Just make sure that you provide the e-mail that was registered on our system when the component was purchased.
Regards,
Damba
Re:
That make sense, thanks a lot for all your help.
Best regards.