I have a Windows service that monitors remote shares for job control and job output files and processes and moves files to archive folders.
My best solution so far is using methods available in the System.IO namespace (like Directory.Exists(), File.Move(), etc) to access and move these files.
The issue with this approach is that if the remote computer is not in a domain (which it is not), my service that performs these operations must run under a user account that also exists on the remote (Windows) computer, and the permissions must be set accordingly for the share and the file system objects on both the remote and the local computers.
I am concerned about issues that might arise down the road if the environment changes because people are not aware of these dependencies. I'd much rather build a more robust solution. Do you have suggestions?