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.
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.
Go to your drive folder. Right-click and select properties:
Go to the security tab:
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.
Google Drive is not appropriate for storing or syncing code.You should use version control for storing and syncing code. SVN and Git are both good at this, but Git is far more common these days and you can use Git with Github for free. It allows you to sync between two computers easily, but far, more importantly, it allows you to version your code which is absolutely essential when it comes to building software.
Sign up for Github or some other Git service and store a clone of your code there. That will mean that your code is always available wherever you are, and every line will be versioned.
User contributions licensed under CC BY-SA 3.0