Reputation: 101
I am unable to build my project when the Solution Configurations dropdown is set to 'Test'. Multiple errors appear, most of which read 'Unable to copy file [File location] to [copy file location] Access to the path [copy file location] is denied. I have already checked or attempted the following, and the issue is still unresolved:
Upvotes: 1
Views: 13228
Reputation: 21
For me worked the following:
Project / Properties / Build:
Change Output path to another folder, build, then restore your original path.
Upvotes: 2
Reputation: 101
I clicked properties, added Full Control and Modify permissions for users, and then did a clean and rebuild on my project. I did this at the folder level, and parent folder levels before the issue was resolved.
Upvotes: 3
Reputation: 41
Based upon what you have provided, to me it seems like a permissions/access issue.
Are you logged in as a Local Admin? If not you may want to get elevated privileges or see if you have other security related items holding you back (e.g. group policy coming down that may be inhibiting you etc).
Speaking of elevate privileges, have you tried right clicking on the Visual Studio exe and doing "Run As Admin"? This may help as well.
You could also download ProcMon (Process Monitor) and do a trace while you are trying to build. This may provide answers to what is going on. ProcMon is now owned by Microsoft (used to be SysInternals, but they got bought by MS many moons ago) --- I would download it, run a trace, then do a filter for "Access Denied" for the results to see what you may not have access to.
Perhaps try logging in as a different user to see if that helps?
Hope this helps!!
Upvotes: 2