Re: Configuration variables

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

From: vineetbatta (anonymous_at_discussions.microsoft.com)
Date: 02/03/04


Date: Mon, 2 Feb 2004 22:56:07 -0800

In this case the thier will single user setting for the all the users. Probably this will be done by the admin.
Secondly accessing the Configurations varibles from Web.config file than accessing from Registry will be faster.

Secondly the Admin can manually go and modify the Config file to have new set of values for the variables..... as long he does not mess up the XML. :-)

Thanx Ryan.

Batta
     
     ----- William Ryan eMVP wrote: -----
     
     "Best" depends on your circumstances. The Registry is cool in that it's
     easy to use and can store config settings for different users. On the other
     hand, not everyone is chomping at the bit to let you hit their registry.
     But, the registry does make it harder for people to inadvertantly screw up
     your key values and helps to obscure them.
     
     Config files are great and easy to use, but currently they don't let you
     write to them, and a user can delete one and cause all sorts of drama.
     Here's an example of using a .Config file..
     http://www.knowdotnet.com/articles/configfiles.html
     
     On a web app or something more suited to a single user (single user in the
     sense of that the app runs only under one or a few logons regardless of how
     many users are being served by your app) .config files are probably the way
     to go. If you have a ton of people all of whom store custom settings, the
     registry might be easier to use.
     
     Also, factor in people tampering with your settings. Most folks have been
     warned about messing with the registry, so your average user doesn't go
     hacking around it. Someone probably won't delete or play with a .config
     file, but in general it's easier to get to.
     
     IMHO, go with the config files though...clean, easy to use, easy to
     manipulate etc.
     "vineetbatta" <anonymous@discussions.microsoft.com> wrote in message
     news:C7DB0320-30E5-4FEC-868B-0C816E0C2828@microsoft.com...
> Hi all,
>>> What is the best way to store the configuration varaibles of the
     application (E.g: Registry, Web Config file, Xml file , text file etc)?
>> E.g: of configuration variable is
>> *Connection string
> *Support Links
> *# of retiries to SQL Server before exiting.
>> What i am looking for is the an highly fast way to access the variables(
     As it will involve disk operation) and also secure.Not inclined to user
     Registry -- if i have better option.
>> Thoughts on the above will be appreciated.
>> Thanx in advance
>> Regards
> Vineet Batta
     
     
     



Relevant Pages

  • Re: Configuration variables
    ... not everyone is chomping at the bit to let you hit their registry. ... Config files are great and easy to use, but currently they don't let you ... If you have a ton of people all of whom store custom settings, ...
    (microsoft.public.dotnet.general)
  • Re: Where to find SCO Termlite?
    ... you can export a registry branch from regedit and then ... My quick experiments with putty showed ... You can configure Putty to be SCO friendly, use its config menu and save the modified settings. ...
    (comp.unix.sco.misc)
  • Re: Why not XML based configurationfiles?
    ... If config files are installed elsewhere, ... if your distro doesn't contain the apps you wan't or versions of the ... You can then control where the config files go. ... The windows registry is almost as bad than ...
    (comp.os.linux.misc)
  • Mouse corruption
    ... and even the kde keyboard mouse emulation - but, ... window: Moving the mouse around within the window just works fine, ... I have not changed any global config ... I also did not change account specific config files explicitely, ...
    (comp.os.linux.x)
  • Re: Why not XML based configurationfiles?
    ... > would be wrapped in xml. ... waste of time learning 100 ways to to edit freaking configfiles. ... Config part, the part that contains the current value for the variable. ... >>I know it's important to acces config files from texteditors. ...
    (comp.os.linux.misc)