Hello,
I am using business connector of AX from C#
I try connect to like the sample on http://msdn.microsoft.com/en-us/library/cc197126.aspx
but I got a message while doing ax.Logon(null, null, null, null);
The message: Unable to log on to Microsoft Dynamics AX
The code is running from server, where there are privileges.
What may be the reason for that?
I had problem before of error after publishing:
Could not load file or assembly 'Microsoft.Dynamics.AX.ManagedInterop' or one of its dependencies. An attempt was made to load a program with an incorrect format.
so, I add it from assembly: C:\Windows\assembly\GAC_64\Microsoft.Dynamics.AX.ManagedInterop\6.2.0.0__31bf3856ad364e35\Microsoft.Dynamics.AX.ManagedInterop.dll
(Instead of: C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Microsoft.Dynamics.AX.ManagedInterop.dll)
I don't know whether this was the right thing to do,
but that solved the above error.
The AX is on 32 bits, but the windows server (windows 8) is 64 bits.
Business connector is from: C:\Program Files\Microsoft Dynamics AX\60\BusinessConnector\Bin\Microsoft.Dynamics.BusinessConnectorNet.dll
Thanks :)
*This post is locked for comments