Newbie - Getting WinSCP Working

Bill Bell 6 Reputation points
2021-06-18T14:01:37.007+00:00

I have an Azure function app (C#) and one of the functions queries an SQL DB, creates a JSON file and FTPs it to a website. I'm using WinSCP. It works locally. The .csproj contains reference to package.

<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.4" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.13" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
<PackageReference Include="WinSCP" Version="5.19.0" />
</ItemGroup>

I'm using VS 2019. I use VS to publish app as a package file. When I do remote debugging I get this error.

The winscp.exe executable was not found at location of the assembly WinSCPnet (C:\home\site\wwwroot\bin), nor the entry assembly Microsoft.Azure.WebJobs.Script.WebHost (C:\Program Files (x86)\SiteExtensions\Functions\3.0.15961\32bit), nor in an installation path. You may use Session.ExecutablePath property to explicitly set path to winscp.exe.

How do I find where it is installed? How do I fix?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

2 answers

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  2. Joe Liberty 0 Reputation points
    2026-02-18T22:58:15.09+00:00

    How can I install WinSCP so I can use it ? ? ?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.