Running C# files out of Google Drive

1

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.

windows-10
visual-studio
google-drive
c#
visual-studio-2015
asked on Super User Aug 8, 2015 by Toxicable • edited Mar 20, 2017 by Community

1 Answer

2

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.

answered on Super User Oct 17, 2015 by TheCodeWizard • edited Oct 17, 2015 by Jamal

User contributions licensed under CC BY-SA 3.0