web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AXBuild Error: The directory name is invalid

(0) ShareShare
ReportReport
Posted on by 275

C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin>axbuild

.exe xppcompileall /aos=01 /altbin="C:\Program Files\Microsoft Dynamics AX\60\Cl
ient\Bin" /workers=4

Microsoft (R) Dynamics AX Build Utility 6.2.1000.4051
Copyright (C) Microsoft Corporation. All rights reserved.

*** Compile all starting at 13.12.2017 11:57:01.
*** Kicking off header compilation (pass 1) with 4 workers.

Unhandled Exception: System.AggregateException: One or more errors occurred. ---
> System.IO.IOException: The directory name is invalid.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
at axbuild.Program.<>c__DisplayClass1.<Compile_Headers>b__0(List`1 nodes)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating
>b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled
Exceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationTo
ken cancellationToken)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int
32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWit
hState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`
1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState
, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithE
verything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Act
ion`1 body)
at axbuild.Program.Compile_Headers(List`1 NodesFirstPass)
at axbuild.Program.CompileAll(Int32 numberOfProcessesPass1, Int32 numberOfPro
cessesPass2and3, SqlConnection modelStoreConnection)
at axbuild.Program.Main(String[] args)

 


Hi Everybody 

Did anyone came across this error when compile and how to fix it?

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Are you sure that the value in /altbin is correct? Isn't the folder C:\Program Files (x86)?

  • Ashein Profile Picture
    275 on at

    I have tried both, same error

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I didn't mean that you'll try to guess the correct path. Please stop trying random things, open Windows Explorer, navigate to the path, copy it and paste it to your script. Than you'll know for sure that it's correct. You shouldn't have done it in any other way.

  • Ashein Profile Picture
    275 on at

    It is the correct path:

    C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\AXBuild.exe

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    No, C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\AXBuild.exe isn't a valid value for /altbin parameter. That should be a path where AX client is installed.

  • Community Member Profile Picture
    on at

    As this thread is still open, I would like to tell that I am using correct path for altbin but still facing this same error on axbuild.

    Basically my ax development client was crashing as soon as i tried to open any class method. so first i thought to do full CIL compile and that ended with the same error 'the directory name is not valid'. Hence i tried axbuild and got presented with the same error. Not sure where is the root cause.

    I also tried to axbuild other AOS service installed on the same AOS server and got the same error. So looks like it's not related to my current AOS  where i am doing customization.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans