Web.config best practices in ASP.NET apps?

From: Ronald S. Cook (rscook_at_westinis.com)
Date: 04/26/04


Date: Mon, 26 Apr 2004 08:50:05 -0600

It seems to make more sense to separate app settings (e.g. global variables,
constants that the development team would control) from web settings (e.g.
database connection strings) that the operations team would control... or
does it?

Our ops team doesn't like that they must comment out connection string lines
depending on wjhere deploying and would rather have their own file that they
insert as desired. But we currently require version/change control on the
Web.config file as we may update a global variable from build to build.

Is there a best practice to this issue, or is using a single Web.config just
the way it has to be?

Thanks,
Ron



Relevant Pages

  • Re: Add a dataset control to a ASP.NET 2005 app
    ... especially since we don't store our connection strings on the server, ... I am talking about a dataset control not a .XSD dataset file. ... >> Who is Scrooge? ... >>> Cor ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Again: Protecting ConnectionString in web.config
    ... Check out the article "Safeguard Database Connection Strings and Other ... > if there's a cracker gain full control of the win server that IIS ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to return values - best solution ?
    ... Microsoft IT Academy Program Mentorhttp://microsoftitacademy.com/ ... text box control - Text1 ... I looked into using a global variables and the OpenArgs property, ...
    (microsoft.public.access.formscoding)
  • Re: Singletons in PHP
    ... are often abused as) global variables: You never know when these objects ... and have very little control over it. ... unit testing, they can be a real pain in, you know where. ... Willem - could you explain that last sentence, ...
    (comp.lang.php)
  • Re: Talking to multiple GUI
    ... I got most of the multiple gui control working using the ... global variables approach. ... type application where I have the plot in one figure and the ... VCR controls in the other figure. ...
    (comp.soft-sys.matlab)