Re: Q: app.config and Windows Service.

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Martin Arvidsson, Visual Systems AB,

You can't save data to the .config, it's design approach

Use XML file to store your specific settings

M> I created a .settings file and added some values. All values are user
M> set defined.
M> M> When i load my windows service i can read from the .config file. But,
M> i can set a value and save to the file.
M> M> What am i missing? Are there any security issues?
M> M> I have tried to add assembly to set full trust, but then i cant
M> install my windows service.


---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo


.



Relevant Pages

  • Re: Allowed roles/users from the web.config
    ... Use WebConfigurationManager, which allows to open any section of config ... WBR, Michael Nemtsev [.NET/C# MVP]. ... Team blog: http://devkids.blogspot.com/ ... "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" Michelangelo ...
    (microsoft.public.dotnet.framework.aspnet)
  • config file
    ... I am trying to develop a small app that will populate a pulldown from ... information that is stored in a application config or settings file. ...
    (microsoft.public.vb.general.discussion)
  • config file
    ... I am trying to develop a small app that will populate a pulldown from ... information that is stored in a application config or settings file. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: reloading app.config in Configuration Management Application Block ???
    ... I would not reccomend doing this. ... over the config file. ... > ConfigurationManager class reload the new app.config settings. ... > that the settings file it is using has been changed. ...
    (microsoft.public.dotnet.general)
  • Re: Change app.config settings
    ... The configuration file is ... Then you can pass the config file which is ... > be able to change these settings without restarting the service. ... > the exe (windows service), ...
    (microsoft.public.dotnet.general)