Solved

deploy .net web application on IIS5 with multiple configuraion files

Posted on 2013-05-21
2
364 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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