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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:54:38+00:00 2026-06-03T12:54:38+00:00

I am working on a web project that contains three web services and a

  • 0

I am working on a web project that contains three web services and a website. My source code is stored in TFS for version control and I regularly have to work in several different branches on the same code. These branches are merged regularly and are all set up in the same way. They all use WebDev.WebServer as default host. Which is fine because it saves other teammembers from having to continuously alter settings in IIS to switch to the proper folder.
Well, guess what?
I want to move to IIS and still be able to use the same config for every branch. This will results in conflicts since I Need to change the virtual folders for these projects every time when I switch branches. I also need to be able to turn off these IIS sites to enable the use of WebDev. Manually, that’s a bit of work and I’m a programmer. This needs to be automated…
My idea is to create a small web application running on my local host, which I can use to change the virtual folder and/or to turn on/off the IIS site. Sounds simple enough so all I need are two things:

  1. How do I change the virtual folder of an IIS site from one location to another in code?
  2. How to turn on and off a site in IIS?

Simple, right? So, point three: do you have any other suggestions that I could use?

Oh, other developers are also working on the same project. Not all of them will use IIS to run it. Thus I cannot alter the config files for these projects. I must manage it all through IIS.

  • 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-03T12:54:41+00:00Added an answer on June 3, 2026 at 12:54 pm

    Personally, I would use Powershell in this instance.

    $websitePath = "IIS:\\Sites\Path to your website in iis"
    $fullWebSiteFilePath = "file path to your content"
    
    if(-not (test-path $websitePath))
    {
        new-item $websitePath -physicalPath $fullWebSiteFilePath -type Application
    }
    else
    {
        Set-ItemProperty $websitePath -name physicalPath -value $fullWebSiteFilePath 
    }
    

    with a little jigerry pokery you could read the different configurations from an xml file and then call the shell script passing the xml file name as a parameter.

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

Sidebar

Related Questions

I'm working on a project that relies extensively on Exchange Web Services. As of
I am working on a project that has Spring based Web Services and Spring
I'm working on a project where I have 2 web services that need the
I'm working on a web project that takes the results from a survey type
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
I'm working on a little web project that needs to keeps to a NumViews
I am working on a Spring Web Project that we are using Subversion, Eclipse
I currently started working on a maven web-app project that needs to be launched
I'm working on a project that requires a Web-based workflow application. We're now evaluating
I'm working on a web app project (in java; not that it matters) and

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.