FTP Transfer using WinSCP

rkaufmann
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 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.
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
-
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.0 -
Hello @rkaufmann,
You must copy the files in the Client Add-ins folder
and in the Service one
Regards.0 -
Is there anyone here that has implemented WinSCP for BC24 or up (.net core 6, OnPrem)?0
-
Is there anyone here that has implemented WinSCP for BC24 or up (.net core 6, OnPrem)?
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.
1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions