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 :
Small and medium business | Business Central, N...
Suggested Answer

Cannot Create an instance of the following .NET Framework object

(0) ShareShare
ReportReport
Posted on by 2
I have inherited a code base for Business Central on-prem.
 
The code calls into FluentFTP dll to transport data files. 
 
This code has more or less remained the same with small changes for each new Business Central iteration.
 
We are currently trying to get BC22 compliant, but cannot get an instance of FluentFTP (or any other assembly) to instantiate. 
 
The code base will fully compile and publishes without errors.
 
Steps we've taken so far:
  • Updated to .Net Framework 6
  • Updated FluentFTP.dll to the new version 48.0.0.0
    • //////
  • Added Probing paths for new .Net assembly​​​​​​​
    • ​​​​​​​​​​​​​​//////
 
Current constructor
         //////
 
 
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    Hi, if it is Business Central 2023 wave 1 (BC22), it should be related to the update below. I hope the following information can give you some tips.
    Migrating from .NET Framework to .NET Standard
     
    Thanks.
    ZHU
  • Community member Profile Picture
    2 on at
    For more clarity, I have attempted to migrate the references to .NET 6. 
     
    After installing .net 6,  the probing paths within settings.json point to those assemblies:
     
    "al.assemblyProbingPaths": [
           
            "./.netpackages",
            "C:\\Program Files\\dotnet\\packs\\Microsoft.NETCore.App.Ref\\6.0.23\\ref\\net6.0",
     
     
    The runtime version is pointing to .net 6 in the app.json
     "runtime": "6.0",
     
    2 of the 4 assemblies work correctly when references, the other 2 throw the original error message. 
     
     

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans