How can I execute C++ .dll method on server side method?

I have added ImageMagick assembly for .NET (MagickNET.dll) in References in Dynamics AX 2012 and executed some X++ code to convert image format and it worked fine.

Then I moved all the code to a method with RunOn property set to server as I dont want to run it on client side. Now, when I execute the same X++ code it gives me the following errors.

Assembly containing type MagickNet.Geometry is not referenced.

Object ‘CLRObject’ could not be created

Initially, during testing on client method, I placed .dll file in my …/Client/Bin folder and added reference from my AOT.

Next I placed it in …/Server/…/Bin folder and added reference from my server’s AOT and then tested the method with RunOn property set to server but it is not working and gave me the above mentioned errors.

Please help me as I have been working around this issue for a week and could not get any solution.

Hi Adeel Nayeer,

As I am also suffering from same problem can u please help me if you know solution.

thanks in advance,

sudha