WinSCP.SessionRemoteException: Host does not exist error

Advertisement

tharak
Joined:
Posts:
2
Location:
India

WinSCP.SessionRemoteException: Host does not exist error

It's working fine via WinSCP tool. When I try to run it from C# Windows application, I get below error.
WinSCP.SessionRemoteException: Host 'xxx.xxx.xxx' does not exist.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: WinSCP.SessionRemoteException: Host does not exist error

Are you able to connect to that host anyhow from the same machine? In WinSCP GUI? In any other client using the same protocol?

Reply with quote

Guest

Yes it's connecting fine when I do it via Windows SCP tool. The problem occurs only when I execute the connection from my C# windows application. One more point to add here. Authentication happens via ppk file. Not sure it's because of this ppk file(encrypted password file).

Reply with quote

martin
Site Admin
martin avatar

Please post session log files both from GUI and the code – both from the same local machine and same local account.

Reply with quote

Advertisement

You can post new topics in this forum