Options

FTP Transfer using WinSCP

rkaufmannrkaufmann Member Posts: 71
Hi, here in the forum are some instructions how to do use WinSCP to transfer files.
I downloaded the WinSCP-Automation package, which only contains the WinSCPnet.dll and WinSCP.exe

I copied both files to the Addin Directory an my Client.
If I create a DotNet Variable in my C/AL Dev Client, I see the WinSCPnet Assembly in the Assembly List in the "Dynamics NAV" tab.
But when I select the Assemby I get an error "Could not load type "WinSCPnet, Version ........"

Is an addition install prcoedure required, or what am I missing at this point?

I want to create a CU that transfers files using ftp automatically running in the Job Queue of BC.
So the code must run on the service tier.

I use Business Central V14.

regards Rolf
thanks for any advce.

Answers

  • Options
    vaprogvaprog Member Posts: 1,118
    This does work here. BC 14 OnPremise; don't know which version of WinSCP exactly, but fairly recent (probably 5.16.1).

    Have you made sure the files can be accessed by the service tier user, and have you cleared the ADS marking the files as originating from the internet?

    Also try to copy the files to the add-ins folder of the development environment.
  • Options
    ftorneroftornero Member Posts: 522
    Hello @rkaufmann,

    You must copy the files in the Client Add-ins folder

    diz0yur4k826.png

    e7z3hnscpqgs.png


    and in the Service one

    d4qygbapfsfo.png

    hvjgb9f0zlfi.png


    Regards.
Sign In or Register to comment.