I have an application that opens a file, the path of which is set to what looks like a UNC path, but with the double slash and hostname removed i.e. instead of
This refers to the share
SHARED on the local machine.
This all worked fine, until I switched the application to run as a Windows service. Now the application cannot open the file.
The service is running as a domain account which has full control of the share.
I would like to understand the meaning of this path format, why a Windows service can't access a file referred to with it but a console application can, and how to make this work without changing the path (if possible).