I was able to delete files in the root of the FTP site, but when I try to move to a sub-folder, I get a message that Access is Denied. Permissions are inheriting, so all sub-folders have the same permissions as the root folder and I am using the Administrator user name and password for the FTP server machine, so there should be no permissions problems. My code is as follows:
EnterpriseDT.Net.Ftp.FTPClient ftp = new EnterpriseDT.Net.Ftp.FTPClient();
ftp.RemoteHost = "192.168.2.2";
ftp.Connect();
ftp.Login(ftpUser, ftpPassword);
ftp.ConnectMode = FTPConnectMode.ACTIVE;
ftp.TransferType = FTPTransferType.ASCII;
ftp.ChDir("Ack");
ftp.Delete("test.ack");
ftp.Quit();
I have tried both ACTIVE and PASV for the FTPConnectMode. As I said, this code works flawlessly if I use it to delete files from the root but when I try to move to a subfolder, it throws this error:
EnterpriseDT.Net.Ftp.FTPException
test.ack: Access is denied. (code=550)
Any ideas why it's doing this?