“is not a valid win32 application” error when running program locally, but works fine via UNC path

I’ve come across a strange issue that seems backwards from what everyone else is having. I have a homebrewed C# Console application that is deployed to a central server and run from the command line. When logged on the server (Windows Server 2008 R2), if we run it via local path (ex.

Windows 2008 VPS via “is not a valid win32 application” error when running program locally, but works fine via UNC path.