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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How To Update C# Reference In AOT

(0) ShareShare
ReportReport
Posted on by 395

After making an update to an existing C# project I added some code that uses the base Microsoft.Dynamics.Ax.Tms dll. I added the reference in Visual Studio under the references node and compiled with no errors. Now what I can't figure out is how to get AX to compile my changes. I have tried the following:

  1. Add project to AOT
  2. Deploy project
  3. Shut down AOS
  4. Turn on AOS
  5. Start client 
  6. Compile project in AOT
  7. Get several errors

Since that didn't work I tried this sequence next:

  1. Turn on hot swapping
  2. Deploy project
  3. Compile in AOT
  4. Still errors

Next going off a few forums I tried:

  1. Deploy project
  2. Shut down AOS
  3. Delete AUC files
  4. Turn on AOS
  5. Compile
  6. Still errors

I can't think what else I need to do. Clearly it compiles fine in VS but AX cannot see the reference. I have tried deploying to the client bin as well with no luck. I don't see why I would need to GAC anything since the dll was already in place and I just updated it. AX sees that I changed the project, but doesn't seem to make the connection that the tms dll is right there and available.

Can someone who is apt with .NET C# help me out here? I am sure it is something dumb I am missing but I've already spend over an hour trying to get it to compile in AX.

Thanks in advance.

2016_2D00_01_2D00_29_5F00_22_2D00_39_2D00_27.png

2016_2D00_01_2D00_29_5F00_22_2D00_39_2D00_42.png

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Travis Bagley Profile Picture
    395 on at
    RE: How To Update C# Reference In AOT

    Hi Martin,

    Thanks for your response. For some reason AX wasn't pulling in the TMS dll with the one I customized even after adding it as a dependency. I finally fixed it by creating a new solution, adding both my project and the tms project, adding it as a reference, building then deploying. This time VS said one already exists do you want to replace and it seemed to actually update this time as when opening the project from AX it loaded the tms project as well.

  • Martin Dráb Profile Picture
    235,914 Most Valuable Professional on at
    RE: How To Update C# Reference In AOT

    You said that the DLL was already in place, but what's the place? Can AX client really find it at runtime?

    Also, can it actually be loaded to 32-bit processes? I don't see the DLL in my system, so I can't check it for you.

    If needed, use the Assembly Binding Log Viewer.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans