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 :
Microsoft Dynamics AX (Archived)

Running a 32-bit DLL in batch/AOS in DAX2012

(0) ShareShare
ReportReport
Posted on by 2,067

Dear DAX forum.

I'm creating a batch-job, that should access a 3'rd party program.  The 3'rd party program have a .NET wrapper dll, but this dll is compiled for 32-bit.  I have created a reference to the dll in AOT, and when running on a AX-client it works perfectly.

But as soon as I try to run it on Server, or try to run the class as a batch, it all starts to fail.  The error messages I get when running in server/AOS is :

Assembly containing type XXXX.XXXX.XXX.XXXX is not referenced.
Object 'CLRObject' could not be created.

The reference is included in AOS, and in the GAC.

Does this mean, that when running classes and code on the AOS, it cannot be 32-bit dll in use?

I have tried, googled(bing'ed ?), asked and cried.  Maybe this forum can point in the right direction.

 

 

 

*This post is locked for comments

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

    I'm afraid you simply can't load 32-bit libraries to a 64-bit process. You have to use a 32-bit process and communicate with this process from AOS. I would consider, for example, to build a Windows service handling requests from AOS, communication through a WCF service. You can also find descriptions (e.g. here) how to do it via COM wrappers, but I've never tried it.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans