.net - WIndows Service in c# -


im working on project in requirement such need read hklm settings xml file , write settings windows registry. need advice on best option of following purpose:

  1. windows service running on network layer
  2. wcf service tcp protocol
  3. named pipes

as user logged system not having enough privileges run service, therefore there need provided higher privileges service @ time of installation service able run , write settings in hklm.

the xml reg settings generated application. after generating xml file application call proposed service write reg settings in windows registry. application generates xml file runs less privileged credentials (non admin), cannot write hklm settings in registry. therefore need service running higher level of privileges separately application. when application has generated xml file, communicate service , proposed service read xml file , create reg settings.

there no user interaction.

try requirements on : when want read xml file hklm settings, user interaction needed? based on user action? or scheduled job? if it's scheduled , requiring no interaction, go windows service otherwise wcf service.

it's hosting mechanisms different. note wcf service can still hosted windows service windows service can setup http listener(s) on port(s)

regarding privileges, both hosting mechanism need. it's recommended use service accounts proper permissions.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -