We are integrating AX 2009 with a few client home grown applications using the
.NET business connector. For connecting to AX, I am using the logonAs function
with the appropriate parameters. There are three home grown applications. I will
call these applications A1, A2 and A3.
The 'dll's of the C# scripts in which
I am logging in to AX and processing further, are kept in a
server.
Application A1 is working fine under all the
circumstances.
Application A2 runs fine IF application A3 is not trying
to connect to AX.
If A3 is already connected to AX, A2 throws an error 'The
requested operation cannot be performed because you are not logged on to
Microsoft Dynamics.' or 'The logon failed because the logon parameters do not
match those currently being used in Business Connector'. I am properly logging
off from AX at the end of the script using AX.logoff() but this logs off only
the web user session not the business connector session(which I think is the
normal functionality).
Similarly, IF A2 is already connected to AX, A3
shows the same error.
Sometimes, reseting IIS solves the problem and one
of the two is able to connect. Whichever application tries to connect first, it
gets connected while the other application faces the errors.
The server
hosting the dlls has a business connector installed, configured properly
pointing to the correct AOS.
All this while, A1 keeps running parallely
without any issues.
One more information : A1 is hosted in a different
server while A2 and A3 are hosted in the same server where the dlls are. All the
three are IIS web applications.
Please suggest. This is a critical stage
of the project.
*This post is locked for comments
Move all the applications to separate hosts and install the BC on each of them, or use the same BC proxy account for each connection. As mentioned above, once initiated, a BC connection is kept alive for a while even if an application logs off and that connection is reused upon consequent logons. That's why you might have problems if you try to connect to different AOS instances from the same host or if you try to use different credentials in connections initiated from the same host.
Hi Harsh,
Did you ever get any solution to overcome this issue? Please share if you did.
Regards,
Abhinay
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156