Tuesday
We are using the SSH.NET asset on a plethora of our production automations. All the automations are working fine on Windows10 nodes; however, the same process is failing on Windows 2019 with the error “Exception has been thrown by the target of an invocation”.
Note: I have placed the prerequisite dll “renci.sshnet.dll”. Also, the object SSH.Net has no issue on the code stage from the Windows 2019 nodes.
Asset: BluePrism Digital Exchange
Could you please kindly support on the issue.
Tuesday
version: Renci 2020.0.2
Asset: BluePrism Digital Exchange
Could someone please advise/support on the issue?
Tuesday - last edited Tuesday
Hello @sastharpa
That VBO hasn't been updated in a while, so it's likely an issue with the older version of the DLL and the inherent differences between Windows 10 and Windows Server 2019. You can try deploying one of the newer versions of the file renci.sshnet.dll from the NuGet page and see if that fixes the issue.
I'd start with the latest release which is 25.0.0. Download the NuGet package and change the file extension from ".nupkg" to ".zip". You'll be able to open the file as a regular zip archive at the point. I believe there's a folder labeled net462 under the lib folder. Grab the DLL from there, drop it in your BP Automate folder, and see if you still get the exception.
https://www.nuget.org/packages/SSH.NET/2025.0.0
Cheers,
Eric
Wednesday - last edited Wednesday
Hello @ewilson,
Thanks for your support & response. Please find the below my update.
1. I have tried the version you have suggested but found compiler error on the SshNet object.
Compiler error Cannot implicitly convert type 'System.Collections.Generic.IEnumerabe<Renci.Sshnet.Sftp.ISftpFile>' to 'System.Collections.Generic.IEnumerabe<Renci.Sshnet.Sftp.SftpFile>'. An explicit conversion exist (are you missing a cast?)
2. I have simulated on an isolated Windows 2019 nodes on Dev environment where the SshNet object worked with an existing Renci dll.
I suspect the issue is due to some hardening on the production Windows 2019 node but unable to figure it out. I have gone throw the nuget ReadMe page and I see specific supported CIphers & Encryption methods..