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.