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 on 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 Assembly I get an error "Could not load type "WinSCPnet, Version ........"
Is an additional installation procedure 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 advice.
0
Answers
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.
You must copy the files in the Client Add-ins folder
and in the Service one
Regards.
Yes, it's possible. I've just got it working on BC25. In BC20 I was using .Net4.0 version library and now I've switched it to use the netstandard2.0 in the folder contained in the download.
Take the dll from the netstandard2.0 folder and the app file (WinSCP.exe) and place those in your add-ins folder under C:\Program Files\Microsoft Dynamics 365 Business Central\250\Service\Add-ins and restart service.