I am getting LogonSystemChangedException when logging into Dynamics AX using business connector. What can be the cause of it?
Answer:
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.