I write a windows service with .net core 3.1. this service should access to NFS drive but throw the following Exception.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'Z:...\sample.txt'.
I have installed this service with the same user that I logged on to the system (windows server). Also, I wrote a Console application for the test, the console application can access to the NFS drive.
Why I can access by the console and the same user but in windows service, I can not access the NFS drive.