Recently I had some troubles with one AX2012 environment – startup commands simply didn’t work. AX client started, but that was all.
Debugging showed that startup() method in Info class didn’t receive any command text at all:
After some more investigation I noticed that it does work if I use another configuration file:
The difference between those two configurations is here:
logdir,Text,%USERPROFILE%\Microsoft\Dynamics Ax\Log\ company,Text, partition,Text, startupcmd,Text, extracmdline,Text,-Development startupmsg,Text,
If extracmdline,Text,-Development (which opens AX directly in Development Workspace) is included, startup commands are ignored. If extracmdline is empty, everything works as usual. It behaves in the same way in both AX2012 and AX2012 R2.
It’s easy to avoid such configuration files… as soon as you know that you should.