Topic "Error by session.ExecutablePath"

Author Message
oli001
[View user's profile]

Joined: 2012-07-18
Posts: 3
Hi,

I have VS.net 2010 and the Assembly WINSCP.dll is sucessfully integrated.
WinSCP ist NOT installed on my System.

I set session.ExecutablePath = "D:\\winscp507\\"; - here is the file winscp.exe
But I got the Exception: "WinSCP.SessionLocalException: D:\winscp507\ does not exists."

If I set the path to "D:\\winscp507\\winscp.exe"; I get the Exception: "System.IO.FileNotFoundException: D:\Entwicklung C"
First the path in Executable path is not the path the FNF-Exception shows, second: the path nomally is D:\Entwicklung C#\...

Thanks for help.

Oli
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You should set the ExecutablePath to path to .exe (your second variant), not to path to containing directory.

Please set Session.DebugLogPath and attach or email me the log.
_________________
Martin Prikryl
oli001
[View user's profile]

Joined: 2012-07-18
Posts: 3
prikryl wrote:
You should set the ExecutablePath to path to .exe (your second variant), not to path to containing directory.
Please set Session.DebugLogPath and attach or email me the log.


The problem was the '#'!
After renaming the folder in "Entwicklung DotNet\...." it works fine.

But I have another question:
The SSL/TLS certificate needs the key from server. Is it possible to trust always, without put the key in the variable?

Thanks for help,

Oli
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Thanks for sharing this. I'll try to reproduce the problem.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
oli001 wrote:
The problem was the '#'!
After renaming the folder in "Entwicklung DotNet\...." it works fine.

Thanks for sharing this. I'll try to reproduce the problem.

Quote:
But I have another question:
The SSL/TLS certificate needs the key from server. Is it possible to trust always, without put the key in the variable?

If the certificate is untrusted, WinSCP .NET assembly won't connect. So you need to set the SessionOptions.SslCertificate. If that's what you ask for.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
I wasn't able to reproduce the problem with FileNotFoundException.
I have emailed you a link to a debug version of the assembly.
Hiro.A
[View user's profile]

Joined: 2012-10-24
Posts: 18
Location: Japan
Hi.

(I am Japanese and please forgive me if my english is poor..)

I also got the same error.
I guess the main reason of this issue is that my environment of my c# binaries was @"I:\VC# Projects\C#2010\scptest\scptest\bin\Debug\".

This issue may raised if C# binary's path has any "#" characters.

Would you modify this assembly to accept it ?


Thank you for offering this fantastic programs!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Thanks for report post.

This bug has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=935
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