Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

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

Posted on by 316

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

  • Suggested answer
    yz_ Profile Picture
    yz_ 5 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    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.

  • D K Singh Profile Picture
    D K Singh 10 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    Hi

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

    I have my dll methods public and referencing properly

    C

  • JaminLee Profile Picture
    JaminLee on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

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

  • AdnDalhi Profile Picture
    AdnDalhi 316 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    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

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 229,400 Most Valuable Professional on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    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.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

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

  • AdnDalhi Profile Picture
    AdnDalhi 316 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    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
    nmaenpaa 101,156 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

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

  • AdnDalhi Profile Picture
    AdnDalhi 316 on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    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)

  • Martin Dráb Profile Picture
    Martin Dráb 229,400 Most Valuable Professional on at
    RE: Methods not found Error, after using .DLL reference in D365FO Project

    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?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,944 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,400 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans