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 result

  • i 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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -