Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

How to Log on to Axapta multiple times with different parameters wihout causing LogonSystemChangedException

$
0
0

I have an application where I logon to Axapta using method LogonAs().

I have a UI to enter the parameters.

When I first run, I enter only User parameter. Call LogonAs method.

Then I go back to the UI, and enter configuration parameter.

Before calling LogonAs method again, I call the LogOff method to remove the previous Axapta.

Then call the LogonAs with the new parameters.

I get the exception LogonSystemChangedException. I am not able to proceed to logon due to this exception. I have to close the application and then run it again with the new parametes.

I want to proceed with logon without closing the application. I do not want this exception to occur. Is there any way to terminate the BusinessConnector instance, create a new one and proceed with the LogonAs with the new parameters.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>