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

  • Home
  • SEARCH
  • 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 8274675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:47:34+00:00 2026-06-08T07:47:34+00:00

My web.config file has a large amount of connectstrings in it that I tend

  • 0

My web.config file has a large amount of connectstrings in it that I tend to have to switch back and forth between frequently. This currently involves commenting out the current one, and uncommenting the required config.

I’m a little bit sick of having to do this all the time, and want to make a solution to automatically do it, e.g. simply select the relevant connectstring from a dropdown list and run the project. I was thinking this would be pretty straightforward to write an app to do this using vb.net and regex.

The problem I have is that once I edit the web.config, I get a message coming up in Visual Studio; “This file has been modified outside of the source editor. Do you want to reload it?” Is there any way to reload the file from outside of Visual Studio?

  • 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-08T07:47:35+00:00Added an answer on June 8, 2026 at 7:47 am

    You don’t need to create an application to do that, you can use web.config transformation and just choose the configuration for your web.config from a listbox and Visual Studio will do the job for you

    see these references:

    http://blogs.msdn.com/b/webdevtools/archive/2009/05/04/web-deployment-web-config-transformation.aspx

    http://weblogs.asp.net/srkirkland/archive/2009/10/13/common-web-config-transformations-with-visual-studio-2010.aspx

    http://weblogs.asp.net/gunnarpeipman/archive/2009/06/16/visual-studio-2010-web-config-transforms.aspx

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

Sidebar

Related Questions

I have a sub folder that has an aspx page and a web.config file
Can anyone help. I have an ASP.NET application which has a web.config file so
We have an ASP.NET application using WIF. Our web.config file has a section like
I have a web app with the default Web.Config file which has 2 child
If you publish an ASP.NET app that has an error in the web.config file,
I have configured my Web.Config file as follow in a ASP.NET MVC 2 project:
In my applications web.config file I have a connection string stored. I encrypted it
I have a Web application (with a Web.config file), which will move through the
I want to write some configuration in web.config file, that will make my ASP.Net
When your web.config or app.config file has an appsettings entry, what is the best

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.