Sunday, December 5, 2010

LogonSystemChangedException Dynamics AX

I am getting LogonSystemChangedException when logging into Dynamics AX using business connector. What can be the cause of it?

The correct way to use the method is,

dynamicsAX.LogonAs("AX Alias", "domain",
new System.Net.NetworkCredential("bcaccount", "bcaccountpassword", "domain"),
"company", null, "Instance@server:port", null);

Sometimes you get this issue if you have been logged in with another business connector account. If this is the case make sure to logoff from all business connector sessions and try again.

1 comment:

  1. Hi

    I think the most common reason for this is when you try to connect to another AOS (different AX system). That is not possible, since BC does not log out fully until the application has been shut down. BC cannot be logged on to two different installations at the same time