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.
How to Call a .net C# sharp code in Ax2012
1.open visual studio 2010 create a new C# project in that open class library write the following code
public class TestingMyDLL1
public string Greet(string name)
return "Hello " + name;
2.Bulid the solution
3.go visualstudio projects---> copy dll files
4.program files(X84)-->microsoft dynamics--->client--->bin---> paste Dll files
5.open AOT-->go referencess --->.add reference--> add that dll files
6.Go to jobs--> Add new job write that following code
static void testingNETCode(Args _args)
permission = new InteropPermission(InteropKind::DllInterop);
testingDll = new MyDLL1.TestingMyDLL1();
s = testingDll.Greet("Pavani");
error('Error executing DLL code');
7. Execute job
No fix from November?
Even MVP can't help?
Alex, what fix are you looking for? Does it belong here? Shouldn't you create a new thread for your question?