I can copy a file, but my C# console app can't
===

I've written a console app to help load code to servers, but I'm running into an issue running it. I'm getting a "System.UnauthorizedAccessException: Access to the path '\\...' is denied.

The app is comparing files, and those that are different it copies from a staging area to the server. It runs fine until I try to copy, then I get this error (e.g. I can read and compare the files, but not modify them). If I (manually) simply copy a file from one area to the other, no issues.

I was under the impression that a console app runs as the person who executes it.

The offending code is this:

    File.Copy("correct staging path", "correct live path", true);