07-07-23 10:20 AM
Hello there,
I've historically utilised WinSCP to download files from FTPs using the scripting functionality of WinSCP. As with all project work, this was the fastest way to get the job done at the time, now I'm back to scratch the itch that was attempting to incorporate the .NET assembly directly into an object and then utilise objects to upload and download my files. Feels a cleaner approach than writing on the fly scripts and reading responses.
WinSCP .NET Assembly and COM Library :: WinSCP
Current configuration is as below, I've moved the winscpnet.dll and winscp.exe into the blue prism folder.
Registered the dll as a COM library and added blue prism folder as a windows PATH variable.
simple code lifted from the docs to create a sftp session to a demo sftp server and return true if connected
I am presented with the following error, which fundamentally, from what I can tell, cannot see the WinSCPnet library or load it.
Everything I read points towards integration is possible, but I cant seem to get past this initial error. Any help will be greatly appreciated.
Answered! Go to Answer.
10-07-23 01:43 PM
Hi Chris,
Have you checked if the dll file is blocked by Windows by any chance.
https://winscp.net/eng/docs/message_net_operation_not_supported
I tried this out in BP 6.10 with no compile time issues.
10-07-23 01:43 PM
Hi Chris,
Have you checked if the dll file is blocked by Windows by any chance.
https://winscp.net/eng/docs/message_net_operation_not_supported
I tried this out in BP 6.10 with no compile time issues.
10-07-23 02:00 PM
@shashank.kumar280 , you are the man. HOURS trying to figure this out and its a windows protection issue.
Thank you and kudos to you.
....now to reverse all my hacks and create a clean install procedure 🙂