Skip to content

Access to path \SourceMapping.json is denied in AzureDevOps

  • by

Sometimes you may get an error like this during Builds

Access to E:\Agent\ _work\SourceRootMapping\a3e8a148-c63b-458b-bb1c-9737aaf25169\107\SourceFolder.json is denied

The reason you get an error may be due to any of these

  • Agent has been started and stopped manually
  • Agent issues due to some update

Solution : You can fix this issue by doing any of these below

  • Delete the entire SourceRootMapping or the folder that beings with a3
  • Restart the agent machine (This always works)