I recently started getting this error while running my new Universal Windows App. I was using Visual Studio 2015 Update 3 on Windows 10 Pro.
Error
When you deploy your project, you get the following error.
Followed by this error.
Reason
As you can see from the description of the error, opening the file from the location, access is denied.
This error occurs when Visual Studio does not have written permission on the folder where your project files are.
There may be one of the following reasons
Your project is in a folder that does not have admin permissions.
OR your files are corrupt and Visual Studio can’t read and/or overwrite files.
Solution
- First, try Rebuilding your solution.
- Still does not work, Close Visual Studio. Go to your project folder. Right-click and make sure the account (usually SYSTEM) that is running Visual Studio has full rights on the folder.