I just created a new class + full cil + adding the following syntax:
using MIL = Microsoft.Dynamics.AX.ManagedInterop;
...
public static MIL.Session axSession = null;
if (MIL.Session.Current == null
|| !MIL.Session.Current.isLoggedOn())
try
{
// Login to Microsoft Dynamics Ax.
axSession = new MIL.Session();
axSession.Logon(null, null, null, null);
}
catch (Exception e)
{
Console.WriteLine("An error occurred in object creation or Axapta logon: {0}", e.Message);
return null;
}
MyClass c = new MyClass(); // here I got an exception: The operation failed. The class MyClass does not exist.
The class was drug and drop into the the class library - new class which I want to use.
The proxy is used in several environments on same server (maybe this is the problem, but it is just a guess).
There is a proxy account imported as a user.
What may be the problem that the class isn't known when running (I succeeded log on with proxy account)?
Thanks :)
*This post is locked for comments
I have the same question (0)