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 8205789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:23:54+00:00 2026-06-07T08:23:54+00:00

I have on a single Windows Server about 10 different .NET projects, mostly .NET

  • 0

I have on a single Windows Server about 10 different .NET projects, mostly .NET 4.0 but some .NET 2.0

Some of these projects are asp.net, some are background utilities/services.

These projects interact with over a hundred different databases in our infrastructure. The ConnectionStrings they use to do that changes at least a few times a month.

The issue here is that forgetting to put a ConnectionString in one of these projects can cause a lot of problems, and new projects/updates are deployed to the server all the time by many different programmers.

My new attempt at a solution is to override the System.ConfigurationManager class in all projects and replace it with my own implementation that reads from a shared config file that I can maintain. Then I would just recompile each project once and deploy it.

I could also try to maintain the ConnectionStrings in the machine.config file that’s shared between all projects, but I would have to do it for every version of the .NET framework used by a project which is at least three, and making a mistake in this file seems like it could be dangerous.

Does anybody have a recommendation of which way to proceed?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-06-07T08:23:55+00:00Added an answer on June 7, 2026 at 8:23 am

    Besides the machine.config, you can create common appSettings files. You won’t need to develop anything new, just place your shared settings on this file and reference it on your specific config files.

    Hope this helps.


    Since the link is dead, here’s a couple examples.

    To fully load a section from an external file:

    <connectionStrings configSource="ConnectionStrings.config" />
    

    To complement a section from an external file (+ what’s in the section itself):

    <appSettings file="FileService.config">
    ...
    </appSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have about 7 app servers running .NET windows services that ping a single
I have deployed my ASP.NET web application on IIS (windows 2008 server). I have
sorry about the long title! I have a windows server 2003. I want to
We have a single computer with Windows7 Home Premium running with SQL Server 2008
Assume we have a single Windows form with a button called SimpleButton1. The following
I'm using Delphi 2010 on Windows 7 and have a problem with single quotes
Background Information: I have a single Window VPS at example.com. I have it running
I have A single page that has the following structure <form runat=server><placeholder></placeholder></form> I have
I have some experience with programming, but I have very little experience when it
I have a headless server running Windows Server 2003, and administer it via VNC.

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.