c# - Access denied when copying files to server (windows service VS console application) -
i'm looking explanation why when want copy files local directory server directory works when in console application when make windows service doesn't.
i'm running both application , service on same computer same logged user has access server
in serviceprocessinstaller use
serviceaccount.localsystem
tried networkservice , localservice, same resulti start service manually services window(having
servicestartmode.manual
set) if set on automatic there no change
it's possible i'm missing information, i've been searching quite while , didn't find explanation.
updated question: why impossible install service(with having serviceaccount.user
set) using account of user installing without asking him username , password?
you can try this..
change serivce logon windows service, restart , try.
refer blog -- http://jonathanmalek.com/2007/12/31/shortcut-setting-log-on-credentials-for-windows-services/
Comments
Post a Comment