System.UnauthorizedAccessException: Access to the path '7996'... What is this?

This did the trick for me, somehow after adding the source to my perforce folder, the folder changed to Read only.

So just select your source folder => Right Click => Properties => Unselect read only => Build

2 Likes