Topic "connect FTP none Secure"

Author Message
yilmazt81
[View user's profile]

Joined: 2012-08-09
Posts: 4
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Are you sure your server provides FTP interface?
_________________
Martin Prikryl
yilmazt81
[View user's profile]

Joined: 2012-08-09
Posts: 4
yes i connected winscp ftp client , i can see and upload files .
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
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
yilmazt81
[View user's profile]

Joined: 2012-08-09
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.
yilmazt81
[View user's profile]

Joined: 2012-08-09
Posts: 4
ok i solve problem .

thanks your interesting.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License