I have a very frustrating situation. I am required to use FTP to retrieve a list, delete, and upload files from some special piece of hardware. All my development is happening on a remote computer that is plugged to the mysterious box. It is to my understanding that the box runs on embedded software. The only way I can FTP to the box is using cmd and calling the ftp.exe, pass the ip and hit enter, enter, meaning there are no credentials. I then can do ls. put and delete. However I need to do a dll that will later be called from a hta/javascript gui and it will be use like this:
var ftp = new ActiveXObject("Mission.FTP")
var list = ftp.ls(hostIP);
but anything I try to do from C# returns the following error:
The remote server returned an error: 202 Command not implemented.
The c# code that is failing is:
FtpWebRequest request = CreateRequest(url, WebRequestMethods.Ftp.ListDirectory);
using (FtpWebResponse response = (FtpWebResponse)request.GetResponse())
It fails right at the GetResponse() method.
Isn't FTP a standard protocol. Why would the ftp.exe have a different result than the C# way of doing FTP?