connect FTP none Secure
hi,
i am using WinSCP .net library for connect ftp . but i get "The requested name is valid, but no data of the requested type was found. Connection failed." exception . i can connect same code with SFTP protocol .
what have to do connect simple ftp connection ?
Session option code,
sessionOptions = new SessionOptions();
sessionOptions.Protocol = Protocol.Ftp;
sessionOptions.HostName = "ipadress";
sessionOptions.UserName = "username";
sessionOptions.PortNumber =21
sessionOptions.Password = "password"
sessionOptions.SshHostKey = ""
session = new Session();
session.Open(sessionOptions); //Throw exception here.
i am using WinSCP .net library for connect ftp . but i get "The requested name is valid, but no data of the requested type was found. Connection failed." exception . i can connect same code with SFTP protocol .
what have to do connect simple ftp connection ?
Session option code,
sessionOptions = new SessionOptions();
sessionOptions.Protocol = Protocol.Ftp;
sessionOptions.HostName = "ipadress";
sessionOptions.UserName = "username";
sessionOptions.PortNumber =21
sessionOptions.Password = "password"
sessionOptions.SshHostKey = ""
session = new Session();
session.Open(sessionOptions); //Throw exception here.