Subscribe to our YouTube Channel for more Videos

Azure DevOps Fix for Access to path \SourceMapping.json is denied


There are times when you might get the below error when running the pipeline (during build) in Azure DevOps.

Access to D:\DeveloperPublish\ _work\SourceRootMapping\a6567656a775758-a585868-a7575831\SourceFolder.json is denied

You might receive the above error for one of these reasons

  1. Build Agent has a wrongly configured folder (the same folder might be used by another process etc)
  2. Build Agent has some issues due to an update.

One of the best possible solution to fix this issue is to delete the entire SourceRootMapping folder and then restart the Agent.

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.