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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:16:58+00:00 2026-06-17T17:16:58+00:00

I recently used the App Cmd to add a website automatically to my IIS

  • 0

I recently used the App Cmd to add a website automatically to my IIS server. The script I used was similar to :
site name=”Site1 bindings=”http/*:80site” id=”1%%l”

This was created inside a batch script that generates XML for use in AppCmd Add Sites

The site was added correctly, however it assigned the same Site ID as an already existing Site.

The simple fix for this seems to be to delete the site and inside the ApplicationHost.config file remove the site from there (or change its site ID).

The problem however is that the file always is in use so I cannot save any changes. I have tried restarting the server and going right to that file however the same error occurs.

Is there a way to shut down IIS on startup so that this file is not in use? Or are there other solutions to this so that I can access my sites again.

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-17T17:16:59+00:00Added an answer on June 17, 2026 at 5:16 pm

    Found a solution to my problem.

    Since the file (ApplicationHost.config) is always in use, I found a previous backup (/inetpub/history/) and copy/pasted. This is not a solution for everyone as it does remove any new config changes, however in my case I did not lose any data.

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

Sidebar

Related Questions

I recently made an App for IOS with Phonegap . I used the html5
I recently developed a web app which used the JavaScript window.location property to redirect
I have this app, originally written for iOS 2.x. I recently needed to add
In my app, I want to programmatically bring the most recently used third party
I recently add another menu item to an android java app and was suprised
I recently submitted my app and Apple rejected it because I used: 'AppName iPhone
I recently developed an iPhone app and trying to make a similar version to
I recently used the <<- operator to output a multi-line string, like this: <<-form
Least Recently Used (LRU) Cache is to discard the least recently used items first
I recently used git-svn to clone an SVN repository, for the purposes of maintaining

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.