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

Methods not found Error, after using .DLL reference in D365FO Project

(0) ShareShare
ReportReport
Posted on by 336

Hello community, in my project i'm using a .dll reference (CSharp project)

I've added some new methods in this CSharp project, and back to add again this new reference in my D365FO Project.

The problem is :

1. when i remove the old .dll reference and add the new one, the build take very long time

2. in the X++ class, when i try to call / use those methods i got error that, Method XY not found. 

My question is there any way to make fast updates to this references without removing / excluding the old reference and put the updated one.

Apparently the system still point to an old version, and not able to detect the one methods, How can i get the latest vesrion of my DLL, with the new added methods.

pastedimage1592401267436v1.png

Thanks

I have the same question (0)
  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    Why do you think it's using an old version?

    How (if) did you deploy you DLL?

    Is the method public? Do you call it with correct parameters?

  • AdnDalhi Profile Picture
    336 on at

    The method is Public and correctly called, with all the parameters.

    I've just added 3 new methods before that one, and i used them well, when i added another, i got the error in x++ side. (Method XY not found)

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Do you have the correct DLL version in the bin folder of your package in /AOSService/PackagesLocalDirectory?

  • AdnDalhi Profile Picture
    336 on at

    Yes, i have the last version of dll, in /AOSService/PackagesLocalDirectory/bin

    I've tried also to copy them manually from CSharpProject/bin/Debug/dll1.dll after buildin the project

    And put it into /AOSService/PackagesLocalDirectory/bin

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You should put it in /AOSService/PackagesLocalDirectory/[YourPackage]/bin

  • Verified answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    By the way, you can add your C# project to the solution with your X++ project and add a project reference to the X++ project (pointing to the C# project). Then you can simply compile things in Visual Studio and you don't have to manually deal with DLL files.

  • AdnDalhi Profile Picture
    336 on at

    Problem solved, thanks to all of you.

    i've did another full build of my model + reset iis + refresh .dll, i got the added methods.

    But the build take long time when i execute the solution

  • JaminLee Profile Picture
    on at

    Can you describe the solution steps in more detail?thank you

  • D K Singh Profile Picture
    10 on at

    Hi

    I am facing the same issue but this steps not worked for me.

    I have my dll methods public and referencing properly

    C

  • Suggested answer
    yz_ Profile Picture
    5 on at

    ha, i was doubted by this problem,i got successe after try lot times.

    thats my steps:

    1. delete the references in solution;

    2. delete the older version DLL in folder;

    3. then click "clean" in rightClickMenu clear the link cache ;

    4. Dont forget deploy reports after clean finish. XD

    I haven't test which step  is effective, but "clean" is nessesary , thats i havent see on other post i found.

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
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans