Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 81711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:30:10+00:00 2026-05-10T21:30:10+00:00

We have a legacy ASP.net powered site running on a IIS server, the site

  • 0

We have a legacy ASP.net powered site running on a IIS server, the site was developed by a central team and is used by multiple customers. Each customer however has their own copy of the site’s aspx files plus a web.config file. This is causing problems as changes made by well meaning support engineers to the copies of the source aspx files are not being folded back into the central source, so our code base is diverging. Our current folder structure looks something like: OurApp/Source aspx & default web.config
Customer1/Source aspx & web.config
Customer2/Source aspx & web.config
Customer3/Source aspx & web.config
Customer4/Source aspx & web.config
…

This is something I’d like to change to each customer having just a customised web.config file and all the customers sharing a common set of source files. So something like: OurApp/Source aspx & default web.config
Customer1/web.config
Customer2/web.config
Customer3/web.config
Customer4/web.config
…

So my question is, how do I set this up? I’m new to ASP.net and IIS as I usually use php and apache at home but we use ASP.net and ISS here at work.


Source control is used and I intend to retrain the support engineers but is there any way to avoid having multiple copies of the source aspx files? I hate that sort of duplication!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:30:10+00:00Added an answer on May 10, 2026 at 9:30 pm

    If you’re dead-set on the single app instance, you can accomplish what you’re after using a custom ConfigurationSection in your single web.config. For the basics, see:

    • http://haacked.com/archive/2007/03/12/custom-configuration-sections-in-3-easy-steps.aspx
    • http://msdn.microsoft.com/en-us/library/2tw134k3.aspx

    Example XML might be:

    <YourCustomConfigSection>    <Customers>      <Customer Name='Customer1' SomeSetting='A' Another='1' />      <Customer Name='Customer2' SomeSetting='B' Another='2' />      <Customer Name='Customer3' SomeSetting='C' Another='3' />    </Customers> </YourCustomConfigSection> 

    Now in your ConfigSection Properties, expose Name, SomeSetting, and Another. When the Property is accessed or set, use a condition (request domain or something else that uniquely identifies the Customer) to decide which to use.

    With the proper implementation, the app developers don’t need to be aware of what’s going on behind the scenes. They just use CustomSettings.Settings.SomeSetting and don’t worry about which Customer is accessing the app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows 2003 Server that uses IIS to host a legacy ASP.NET
I have a Asp.net web application running with the following config setting. <xhtmlConformance mode=Legacy/>
We have a legacy ASP.NET web site (not web application, so I can freely
We have developed a vacation rental application in ASP.NET with SQL server as DB.
I have legacy ASP.NET web site, upgraded from ASP.NET 2.0 to ASP.NET 4.0 target
We have a legacy ASP.NET site which uses the encryption methods here: http://www.codekeep.net/snippets/af1cd375-059a-4175-93d7-25eea2c5c660.aspx When
I have a legacy (haha) ASP.Net Webforms Web Site Project in Visual Studio 2008
I have a legacy ASP.NET site I'd like to improve a bit. One area
I have a legacy ASP.Net web application that is basically used to process web
I have an Apache server with mod_mono hooked up to a legacy ASP.NET application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.