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)

Error during run Axbuild

(0) ShareShare
ReportReport
Posted on by

Hi


I try run axbuild in my database server and got this error, how to fix it :

Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'C:\
Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAx\Log\AOTComp.lo
g' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I
nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o
ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolea
n useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean
bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encodin
g, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding
 encoding, Boolean checkHost)
   at axbuild.Program.CompileAll(Int32 numberOfProcessesPass1, Int32 numberOfPro
cessesPass2and3, SqlConnection modelStoreConnection)
   at axbuild.Program.Main(String[] args)

Pre-requisite : I build new development environment using LCS with Test environment topology

I run with this command below :

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

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Can you please confirm if you have run this command as administrator

    Please verify and update us with your findings

  • Community Member Profile Picture
    on at

    Hi Nitesh

    I not run using Administrator. After I re-run again using Administrator, I didn't get any error again. AXBuild working success

    Thanks for your help

  • MR. Puneet Profile Picture
    20 on at

    Hi Nitesh i also have a same problem as you mentioned that cmd shouyld be run as Administrator but it doesnt work for me Do you have any more solution ?

  • Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    Try to disable the UAC, yetanotherdynamicsaxblog.blogspot.no/.../disable-uac-on-windows-2012-r2.html and run again the command.

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