cancel
Showing results for 
Search instead for 
Did you mean: 

WinSCPnet.dll intergration

ChrisIddon
Level 3

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.

935.png
simple code lifted from the docs to create a sftp session to a demo sftp server and return true if connected

936.png

I am presented with the following error, which fundamentally, from what I can tell, cannot see the WinSCPnet library or load it. 

937.png

Everything I read points towards integration is possible, but I cant seem to get past this initial error. Any help will be greatly appreciated.



------------------------------
Chris
------------------------------
1 BEST ANSWER

Best Answers

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.

925.png

926.png



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

View answer in original post

2 REPLIES 2

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.

925.png

926.png



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

@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 🙂



------------------------------
Chris Iddon
------------------------------