web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error during Integration with AX 2009

(0) ShareShare
ReportReport
Posted on by 70

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

I have the same question (0)
  • Abhinay Tharwal Profile Picture
    1,244 on at

    Hi Harsh,

                    Did you ever get any solution to overcome this issue? Please share if you did.

    Regards,

    Abhinay

  • Suggested answer
    Denis Patrakov Profile Picture
    on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans