
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)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.