file permissions – Windows Service can’t access network share

I have a windows service running on my local machine. It’s configured to run under NT AUTHORITYNETWORK SERVICE. The program access a network shared drive on a computer in the same subnet. That shared directory has Everyone set to Full control.

I’m getting False on File.Exists(), but the file exists. I’m certain this is a permission issue. Am I forgetting anything? Note, the computer with the shared drive is not on a domain.

=========================================================================

The fact that the machine with the shared drive is not on a domain is where your main problem is. In order to get this to work you will have to configure the Windows Service to run as a specific user, and then you’ll have to create an identical user on the remote system with the same password. It might work then.

引文来源  file permissions – Windows Service can’t access network share – Server Fault