SEHException in X++ Parallel Compiler


I have started Parallel Compiler by following command

axbuild.exe xppcompileall /aos=01 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\6.0\Client\Bin"

when its starting it shows me an error message as

"Unhandled Exception: System.Runtime.InteropService.SEHException: External Component has thrown an exception.

at wmainCRTStartup()"

I encountered the same error and resolved it by rebooting the server. Give this a try if you are still experiencing this issue.


I was facing same issue on AX2012 R2 CU7. Following steps help me resolve the issue, try if this works for you:

  1. Refreshed WCF configuration of using AX2012 Client configuration utility.

  2. Run Command prompt as “Administrator”, change directory to path where axbuild utility is located i.e. “c:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin”

  3. Execute command “axbuild.exe xppcompileall /aos=01 /altbin=“C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin” /workers=4”

Kind Regards,

You also must have db_owner permition on the databases your AOS is conectted.