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
- Build Agent has a wrongly configured folder (the same folder might be used by another process etc)
- 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.