I like to be able to code on both my laptop and desktop (both with Win 10), therefore I have Google Drive to sync my files between the two. My first issue was that the user folder on both computers was different, but I've changed them so they'd effectively have the same path via the method in this post.

However, now the issue I'm having is that my C# files keep giving me an "access is denied" error when trying to run them through Visual Studio:

Error : DEP0700 : Registration of the app failed. error 0x80070005: Opening file from location: AppxManifest.xml failed with error: Access is denied. . (0x80070005) App1

I've tried saving them to my documents folder to which they ran with no problems, so I tried reinstalling Google Drive, but with no change. Also, just to note, I made a new project to test after each change.

  • Can you make sure that both folders on both PCs are exactly the same? I tried to do the same 2 years ago. I have created a project in the Google Drive directory of PC1 and it executed. Then I tried to run the project on PC2 (same name and path), but it did not run. The problem back then was that GDrive did not synchronize all files, because some file extensions were not allowed. Therefore, some files were present on PC1 (where the project was running), but not on PC2 (where the project was not running because of missing files). However, I don't know if they have changed that in the meantime... – traintes Aug 9 '15 at 19:12

I was having the same issue as you but I managed to resolve this. The error you have is a logical result of the NTFS rights on your hard disk.

When installing Google Drive, the drive has been setup to only be managed by the user with the email address you provided. So, technically, the system itself has by no means access to your drive. Only you, having that email, can access it.

We can resolve your problem by adding "system" as a folder administrator of your Google Drive.

  1. Go to your drive folder. Right-click and select properties:

    enter image description here

  2. Go to the security tab:

    enter image description here

    1. Add the system as a user:

    enter image description here

    1. Set its rights to all:

    enter image description here

So, this should have resolved your problem.

Be sure to do this while your visual studio is closed, so no files from the drive can be altered during this process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.