Topic "SFTPExecutable needs to be defined in app.config to point to"

Author Message
Guest




Hello!

Can you provide an example on how to define the SFTPExecutable in a web.config for VB.NET?

It's the only thing holding me up right now Smile

Thank you very much!
Advertisements
Samf

Guest


I was in need of the same, thank you in advance!!
samf

Guest


Do I need to wait till then next release?

Quote:
The WinSCP .NET assembly will be released with the 5.0.6 beta in few weeks.
samf

Guest


Anyone Question
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
sorry, I have no idea what the SFTPExecutable is. Can you give us more details.
_________________
Martin Prikryl
Guest




prikryl wrote:
sorry, I have no idea what the SFTPExecutable is. Can you give us more details.


I'm getting an error write over here:

With winscp.StartInfo
' SFTPExecutable needs to be defined in app.config to point to winscp.com
Try
.FileName = "C:\Program Files (x86)\WinSCP\WinSCP.exe" 'AppSettings("SFTPExecutable")
If .FileName Is Nothing OrElse .FileName.Length = 0 Then Throw (New Exception("from PutSFTP: SFTPExecutable not set in config file."))
Catch ex As Exception
errmsg = ex.Message
Return False
End Try

Thanks!
moose3322

Guest


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="SFTPExecutable" value="C:\Program Files (x86)\WinSCP\WinSCP.com"/>
</appSettings>
</configuration>
bobr

Guest


If you are having trouble remembering where to modify the app.config file, look in your "Solution Explorer" window in the VB.net editor (C# and C++ might be slightly different). I use various editors, so sometimes it is difficult to remember where everything is. My App.config looks like the following, and seems to work.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<appSettings>
<add key="SFTPExecutable" value="C:\Program Files (x86)\WinSCP\WinSCP.com"/>
</appSettings>
</configuration>
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