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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:17:40+00:00 2026-05-11T12:17:40+00:00

I have a project I’m working on where I have a team that is

  • 0

I have a project I’m working on where I have a team that is located in two different locations. We are using a source control system that integrates with VS 2008. We have created a solution folder where we store different web.config files so the different locations can pick and choose which configuration they need to use to run the project.

What I would like to be able to do is have the Web Project we are working on have a web.config file in the project, but be ignored by the source control system. The source control system we’re using is SourceGear, and it is operating under its default configuration, which is very reminiscent of VSS to me. I would like to avoid having to exclude the web.config file from the project, but I don’t see any other way without the source control system constantly trying to add the file back into the repository.

How can I ignore the web.config file with respect to my source control system without having to exclude the file from my project all together?

  • 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. 2026-05-11T12:17:41+00:00Added an answer on May 11, 2026 at 12:17 pm

    Although my answer is not specific to source control, one thing you may want to consider is adding custom config sections to your web.config, and retrieving a different configuration depending on the location (server it is deployed on).

    I do this currently to deal with deployment to staging, testing, production servers. My configuration classes will determine what the server name is, and retrieve the configuration settings for that particular server. That way, I don’t have to worry about touching the web.config again, or excluding it and using different files.

    Here is an article on how to do this. Yes it is not exactly what you asked, but may be better than relying on source control and using different config files.

    https://web.archive.org/web/20210802144254/https://aspnet.4guysfromrolla.com/articles/032807-1.aspx

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

Sidebar

Related Questions

I have project that I'm working on that is going to require a webserver.
I have project that is crashing on very different execution points when compiled in
I have project asp.net with namespace test and I'm using resources (files Resource.resx and
I have project on rails 3 with multiplayer using Faye. The error block in
I have project in Dropbox and two running laptops: one with Ubuntu and one
I am using Spring and Maven project. I have Project mit-webservices and mit-util project
I am very desperate now... I have project in Visual C++ 2010 using Qt
I want to have project documentation in wiki format and commit to version control
I have project that concerns about calendars, at first i have 1 calendar and
I have project containing few user controls (each represents a game, but that's irrelevant),

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.