Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Re: Error during Integration with AX 2009

    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.

  • Abhinay Tharwal Profile Picture
    Abhinay Tharwal 1,169 on at
    Re: Error during Integration with AX 2009

    Hi Harsh,

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

    Regards,

    Abhinay

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans