using .dll file in x++ code

I have added RR assembly for .NET (RR.dll) in References in Dynamics AX 2012 .i used this .dll file in a class.

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 "RR.eft.constant.eftservice" 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. 

Related
Recommended