Hi,
We need to upload a flat file from source location to a folder on SFTP server through x++ code in a Batch class.
To achieve this we have created a c# class in Visual Studio 2013 with the below code mentioned in scrrenshot and also install the SSH.Net client Version 2016.1.0 .We have deployed the code to client.

The same is is working fine when we run the code through C# console application but when we run this code through AX batch class system is giving runtime error as shown below :-

we had followed https://www.codeproject.com/Tips/1111060/Upload-File-to-SFTP-Site-with-Csharp-in-Visual-Stu to achieve the result.
kindly let us know how to resolve this issue.
Thanks in advance.
*This post is locked for comments
I have the same question (0)