Search code examples
azure-devopsaxaptamicrosoft-dynamicsdynamics-ax7d3fo

Build Agent gets "Access Denied" when building modules in AX 7


I'm working on a Dynamics AX 7 Training VM. My boss asked me to write a documentation about the versioning in AX 7. I tested Git and now, I'm testing Visual Studio Online using Team Foundation as version controller. So, I am able to set up a Build Agent with a Build Definition which will build my projects automatically.

BUT, it doesn't work of course ;)

I created a new model called "MyNewModel" and a project called Project2 associated with MyNewModel. But when I try to run a build, MyNewModel is detected and after that, its directory is "closed". I don't have any permissions anymore.

Oviously the build failed.

The only thing I can do is to delete that module via Source Control Explorer panel in Visual Studio and restart the VM to apply the changes ^^

I am desperate and lost so please, help me.


Solution

  • I solved this issue by closing Visual Studio and then, I ran a Build and it worked, that's it.