web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

SFTP communication doesn't work

(0) ShareShare
ReportReport
Posted on by 550

Hello,

we have developed a function to up- and download files from / to D365FO with SFTP.

At our Tire1 Environments it works fine, but at Tire2 (UAT) we get an exception:

"Could not load file or assembly 'Renci.Ssh.Net' ...

6242.sftp1.png

We created a new C# assembly with this package:

sftp2.png

We also use other packages without any problems.

Does anyone have an Idea?

I have the same question (0)
  • nmaenpaa Profile Picture
    101,166 Moderator on at

    Is the Tier1 environment the one where you developed it? Have you deployed this code succesfully to any environment and used the functionality in that system?

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Stefan,

    Did you reference Renci.ssh.net in your C# solution or in X++ solution?

  • Stefan Wojtas Profile Picture
    550 on at

    Hello,

    I developed this funtion on my local OneBox DEV VM and sucessfully deployed ist to a Tier 1 Cloud Hosted Environment.

    After that, I have created an Software Deployable Package and applied it to the UAT (Tier 2) Environment. At this Environment I get this exception.

  • Stefan Wojtas Profile Picture
    550 on at

    The reference is in my C# solution and from X++ I call the C# functions.

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Stefan,

    I guess it's the problem, C# references is not included in the deployable package and you need to add a reference to Renci.Ssh.Net in the X++ project too. In this case, you will include Renci.Ssh.Net dll into the deployable package

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You wrote

    "I developed this funtion on my local OneBox DEV VM and sucessfully deployed ist to a Tier 1 Cloud Hosted Environment.

    After that, I have created an Software Deployable Package and applied it to the UAT (Tier 2) Environment. "

    So, how did you deploy it to the Tier 1 system, if you only created the deployable package after deploying to Tier 1?

    Perhaps you need to revisit your deployment process, otherwise it would have failed already for Tier 1.

    Sergei has suggested the way how to fix the actual error.

  • Stefan Wojtas Profile Picture
    550 on at

    Thank you for your Replay.

    I will try the way, Sergei suggested.

    After I have done this, I will get back with more Information.

  • Stefan Wojtas Profile Picture
    550 on at

    Hello,

    yesterday I have added the reference to the X++ project and it works now.

    Thank you for the Help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 490 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans