Solved

deploy .net web application on IIS5 with multiple configuraion files

Posted on 2013-05-21
2
363 Views
Last Modified: 2013-06-13
Hi:

I need to deploy a web application to a server with various configuration files under Config folder, such as:
app.config.DEBUGWebA
app.config.RELEASEWebA
app.config.DEBUGWebB
app.config.RELEASEWebB
...etc.

When users access http://myserver/WebA, config file of WebA should be used; if users access http://myserver/WebB, config file of WebB should be picked up and used.

How can I pull this off? My server runs Win XP and IIS 5.1

Thanks.
0
Comment
Question by:sdc248
2 Comments
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 250 total points
ID: 39188606
Hi,

I think you have to create separate config files and deploy it across the server accordingly!

You can also check this blog post on working with multiple config files - http://weblogs.asp.net/jalpeshpvadgama/archive/2011/03/23/working-with-more-then-one-web-config-files-in-asp-net-application.aspx

As far as i know, you cannot achieve what you wish just with configuration. It won't happen automatically!

Hope it helps u...
0
 

Author Closing Comment

by:sdc248
ID: 39246015
Sorry for the late reply.
I think you're right. I did what you suggested and the project has been completed.
Thanks.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Finally almost got it 5 48
Install Problem 13 34
C# Comparing String Arrays. 5 57
Call Controller Action Method from ASPX 2 22
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question