I have a windows service running as local system, which will search for some files / folders in specified locations.
The problem is when i specify the Path to a Shared folder in Network it will return "Path Not Found"
i have set
serviceProcessInstaller1.Account = ServiceAccount.LocalSystem;
but i tried ServiceAccount.NetworkService by setting UserName and Password using this.Context.Parameters[key].ToString()
at this time nothing happens
for ServiceAccount.LocalSystem if i set "Log On" property through "Services.msc" it will work fine. but need it to achieve through code.