I have uploaded a ZIP file that contains three logs along with a text file that lists the three different configurations that we were able to use to login using filezilla.
No user name and no password provided.
User name but no password.
User name and password.
Please let us know that this information is sufficient.
I performed the following tests at my end on a locally installed FTP server.
Scenario 1: A user created with following credentials: Username: test1 Password Required: No Code to connect: FtpClient client = new FtpClient(“127.0.0.1”, 21, “test1”, “blank or any password will work”); client.Connect(true); Console.WriteLine("Current dir: " + client.GetCurrentDirectory());
In the constructor, I tried with blank password or any string, it works and connects and the current directory is displayed.
Scenario 2:
A user created with following credentials:
Username: test2
Password Required: Yes Password: test2
Code to connect:
FtpClient client = new FtpClient(“127.0.0.1”, 21, “test2”, “”); // does not work OR
FtpClient client = new FtpClient(“127.0.0.1”, 21, “test2”, “any wrong password”); // does
not work OR
FtpClient client = new FtpClient(“127.0.0.1”, 21, “test2”, “test2”); // connects
According to my observation, if password is not required, then it should successfully connect to the ftp server, whether you specify a password or not.
I could not with the printer, but it should connect to any software or device which conforms to ftp protocol.
If the MS console ftp command line and Filezilla client can connect, then Aspose.Network should also have no problem. Could you please make sure you are initializing as above and calling Connect(true)?
220 ET0021B78037FF Lexmark X466de FTP Server NR.APS.N368 ready. User (192.168.168.87:(none)): 230 User default logged in. ftp>
I was able to connect to Printer FTP with Ftp-related Classes in .Net Framework also. It looks like Aspose.Network.Ftp class requires PASS command implemented in FTP Server. Can it be changed so that we login with username of empty string ("") and NO password provided?