Solved

deploy .net web application on IIS5 with multiple configuraion files

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now