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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Dll function in job woks but in a class doesn't in

(0) ShareShare
ReportReport
Posted on by 140

Hi all

I have created a Visual Studio Project to consume a web service, Add to AOT, Build, Deploy, restart AOS.

When I test the calling from a job this works perfectly but when I tried implemented in a class this doesn't works, the process don't show me any message.

I declare the reference in classDeclaration and I use the funtions in different methods within the class.

If somebody may suggest me what would do, I will appreciate it

Regards

Jose Fuentes

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Srini Ramidi Profile Picture
    2 on at

    May be you could try compile and full CIL to see if it works.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    The VS project must have the DLL in the Project outputs AOT node within AX, and the project should have server-deployment enabled in order to automatically place it in the AOS VSAssembly folder on service startup.

    Also it should be compiled both for x86 and x64, since the service is running in 64-bit.

  • Vilmos Kintera Profile Picture
    46,149 on at

    Please take your time to mark helpful answers next to each post in order to resolve the thread and assist others with finding the correct reply for similar questions.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans