Hi everyone,
I made a Windows Service using Microsoft .Net for integrating some stuff, but I'm facing some problems:
I have this DLL on which I connect to Dynamics Ax (2012 R3) using business connector, using Axapta.LogOn() method.
When I call this routine using a Console Application, it works fine; but when I call the same method of the same library using a Windows Service, it throws me the error "Failed to initialize the managed interoperability layer of Microsoft Dynamics AX.".
The console application and the service were executed with the same credentials.
I've checked this thread, but as I checked, the Business Connector is installed both on my local machine and on the server.
I've tried a couple of things too (none of them changed the error message):
- Copying the business connector locally on the Service installer
- Copying Microsoft.Dynamics.AX.ManagedInterop.dll locally
- Changed the build from x64 to x86
- Running the service setup as administrator
I've runt out of ideas... Anybody has any idea of what can I try?
Thanks in advance!