kdschool
asked on
what is syntax to commit appicationHost.config changes using command prompt?
Had to made a changes to applicationHost.config file need to recommit changes how do I do commit those changes?
ASKER
In this case
2. if want to update an existing config object: appcmd set site "Default Web Site" /id:200
do I just use the words default web site if that is the site and what does /id:200 mean?
2. if want to update an existing config object: appcmd set site "Default Web Site" /id:200
do I just use the words default web site if that is the site and what does /id:200 mean?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is great information. I found an article that said if I stopped and restarted the application pool and the WAS service it would correct the error I was getting. That worked. I had made a change tot he applicationhost.config file and I did not stop IIS before making the change. Even though I the file was fined using appcmd list config I could not get rid of the error. The error said to recommit the file. Its corrected now. Thank you for this informaiton that would have been my next step. I will award the points to you.
- Reference link: http://www.iis.net/learn/get-started/getting-started-with-iis/getting-started-with-appcmdexe
- Quick Reference link: http://blogs.msdn.com/b/mikezh/archive/2012/04/23/iis-appcmd-quick-reference.aspx
1. If you want to add new config object: appcmd add apppool /name:NewAppPool
2. if want to update an existing config object: appcmd set site "Default Web Site" /id:200
About the closest thing to a recommit is a restore of a backup. For that the syntax is something like:
appcmd restore backup "Site001-backup-yyyymmdd"
Dan