When building my solution in Visual Studio to deploy to the cloud, I ran into an error where it could not copy the XML file I needed due to a permissions error. I played around in Windows Explorer for awhile and could not find the issue. Turns out, the fix is quite simple. If you get this error, just make sure you compile while running Visual Studio in Administrator mode. Thank fixed the problem for me.