473,789 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

managing web.config in different environments...

We have 3 different environments: dev, qa, and production. After unit
testing, the application is deployed to dev for unit testing among the
programmers and business analyst. When that is okay it gets deployed to QA
for other qa teams to test. When that is approved, it gets deployed to
production.

For each environment we have web.config in VSS such as dev.web.config,
qa.web.config and so on. The developer that adds an app setting key into
dev.web.conifg also makes sure that this key makes into all the web.configs
including the production one in VSS. Any time the application gets rolled out
to lets say qa, we use qa.web.config with its respective settings.

Now netops team that does the production deployment are recommending another
plan. They want to have a central configuration file for all the settings for
all the web applications in the enterprise in one central location. Each
application will be provided a guid and based on that guid, via web service,
client application, will extract its settings along with connection string.

Does that idea from netops make sense??

How do you guys out there manage your web.configs for different environments??

Nov 19 '05 #1
2 2033
This is an interesting approach:

http://www.codeproject.com/aspnet/We...dification.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen
We have 3 different environments: dev, qa, and production. After unit
testing, the application is deployed to dev for unit testing among the
programmers and business analyst. When that is okay it gets deployed
to QA for other qa teams to test. When that is approved, it gets
deployed to production.

For each environment we have web.config in VSS such as dev.web.config,
qa.web.config and so on. The developer that adds an app setting key
into dev.web.conifg also makes sure that this key makes into all the
web.configs including the production one in VSS. Any time the
application gets rolled out to lets say qa, we use qa.web.config with
its respective settings.

Now netops team that does the production deployment are recommending
another plan. They want to have a central configuration file for all
the settings for all the web applications in the enterprise in one
central location. Each application will be provided a guid and based
on that guid, via web service, client application, will extract its
settings along with connection string.

Does that idea from netops make sense??

How do you guys out there manage your web.configs for different
environments??


Nov 19 '05 #2
This solution requires that you modify the machine.config file to
reflect the type of server (e.g., Developement). The problem with this
is that in most companies you are not going to have the privilage of
touching this file, nor should you. I always stay away from making such
global changes because it can affect already installed applications as
well as future applications. The general approach to solving this
problem is to create several config files, one for each enviornment,
web.config.dev, web.config.prod , etc, and then have an automated deploy
tool that copies that correct file to the specific enviornment at
deploy time.

Since you are researching this, I would be interested to see what else
you find. Please post them here.

Thanks

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1639
by: Marty McDonald | last post by:
Many of an app's classes could read the config file. The config file could contain many elements, and it will be difficult to know which config file entry belongs to which class. I could adopt a naming scheme for the elements. But am I limited to using the <appSettings> element for my settings? It would be good to have elements such as <myClass1Stuff> so that it's easy to tell which settings go with each class. But whether I put...
4
20246
by: Guinness Mann | last post by:
I'm working in VS2003.NET, with C#. I use app.config to store the connection string to my SQL Server. This works fine. Lately I've been taking work home where the connection string is different. I deal with this by having app.config.home and app.config.work files which I copy over the app.config file as required by my location.
7
3351
by: Bob | last post by:
It's great that VS.NET makes it so effortless to add a web reference to a web service. The problem is, I haven't figured out a way to configure the URLs (or simply switch the references to another web reference) easily when I move my app from development, to staging, to production, as I have corresponding environments for the web services too. So far what I have done is copying the Reference.cs file out and creating a separate class by...
3
2061
by: Fernando Poinho Malard | last post by:
Hello, I'm developing a website which has a SQL database working through ADO.NET. When I'm development site I have my personal IIS server as well as my personal SQL server. All my connections strings are pointing to this local SQL server. When I need to upload the modifications to running website I have to manually change all SQL connections strings because the running SQL server is placed on other machine and has a different name.
6
2476
by: Mikey_Doc | last post by:
Hi We are running cms 2002, Framework 1.0 with Visual studio 2002. We have just upgraded to Framework 1.1 and visual studio 2003. All of our database connection strings are stored within the machine config, this was necessary as our web site has 4 environments and the database server has a different name in each. Since the upgrade the applications can't read the strings in the
8
2001
by: Robert | last post by:
I have what I think should be a pretty common scenario in a corporate environment. I have a web app and three environments on three servers: Development, QA and Production. We develop in development and then deploy the updated application to our QA server and then once tested to our production server. The application has a web.config file. The contents of the file (appsettings part) are different in all three environments because...
4
1155
by: Raymon Du | last post by:
Hi, I am getting the following exception every time I modified web.config, the only way to fix it is to recycle application pool or restart IIS, but I don't want to do that all the times. TIA
2
5397
by: Johnson | last post by:
I'm trying to fix a "sub optimal" situation with respect to connection string management. Your thoughtful responses will be appreciated. I just started with a new client who has a bunch of legacy ASP.NET applications that all manage connection strings in Web.config the same way, like this: This client has one Web.config file per application, and that one Web.config file is duplicated across all environments (i.e., dev machines, test,...
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9506
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10193
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.