access control - Folder is not accessible to Windows Service -
i created simple windows service test. service create text file on local drive. emerged because production service unable drop file in new share had been established, not able work in local workstation.
try { if (!directory.exists(filepath)) { logger.warn(string.format("specified folder {0} not exist.", dropfolder)); } else { using (streamwriter sw = new streamwriter(filepath)) { sw.write(filecontent); logger.debug(string.format("file {0} has been written.", filepath)); } } } catch (exception ex) { logger.error("unable write file " + filepath, ex); }
the service not able see folder, though exists. i've changed login of service account local admin , set permissions on folder full control user.
is there special required when user logged on service?
Comments
Post a Comment