connect FTP none Secure

Advertisement

yilmazt81
Joined:
Posts:
4

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Re: connect FTP none Secure

Are you sure your server provides FTP interface?
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,271
Location:
Prague, Czechia

Please set Session.SessionLogPath. Compare it again session log file for successful GUI session.
If it does not help, attach both logs here.
_________________
Martin Prikryl

Reply with quote

yilmazt81
Joined:
Posts:
4

here log lines.

. 2012-08-24 17:56:34.529 --------------------------------------------------------------------------
. 2012-08-24 17:56:34.529 WinSCP Version 5.0.8 (Build 2438) (OS 6.0.6002 Service Pack 2)
. 2012-08-24 17:56:34.529 Configuration: nul
. 2012-08-24 17:56:34.530 Local account: ....\Administrator
. 2012-08-24 17:56:34.530 Login time: 24 August 2012 17:56:34
. 2012-08-24 17:56:34.530 --------------------------------------------------------------------------
. 2012-08-24 17:56:34.530 Session name: ...../ (Ad-Hoc session)
. 2012-08-24 17:56:34.530 Host name: 10.6.76.192/ (Port: 21)
. 2012-08-24 17:56:34.530 User name: .....(Password: Yes, Key file: No)
. 2012-08-24 17:56:34.530 Tunnel: No
. 2012-08-24 17:56:34.530 Transfer Protocol: FTP
. 2012-08-24 17:56:34.530 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-08-24 17:56:34.530 Proxy: none
. 2012-08-24 17:56:34.530 FTP: FTPS: None; Passive: Yes [Force IP: A]
. 2012-08-24 17:56:34.530 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2012-08-24 17:56:34.530 Cache directory changes: Yes, Permanent: Yes
. 2012-08-24 17:56:34.530 DST mode: 1
. 2012-08-24 17:56:34.530 --------------------------------------------------------------------------
. 2012-08-24 17:56:34.546 Connecting to 10.6.76.192/ ...
. 2012-08-24 17:56:36.800 The requested name is valid, but no data of the requested type was found.
. 2012-08-24 17:56:36.801 Connection failed.

Reply with quote

Advertisement

You can post new topics in this forum