Create an IIS site in Windows XP
Lets say you are developing multiple ASP.NET web sites on your Windows XP development box. And two distinct websites place pages on the root of the website. No problem you say, just create another site in IIS. Unfortunately MS disabled the ability to create other sites in the IIS snapin in Windows XP. Are you out of luck? No, because you can create sites in IIS. Just not from the IIS snapin. Follow these instructions below to do so:
Run the following from the command prompt:
C:\Inetpub\AdminScripts>adsutil.vbs create_vserv W3SVC/2
C:\Inetpub\AdminScripts>adsutil.vbs copy W3SVC/1 W3SVC/2
Now you will want to go in the IIS snapin and rename the newly created site, and set the Home Directory. That’s it! The only problem is that you can only run one site at a time, so you must go into the IIS MMC snapin to stop the site(s) you don’t want running and start the site your are currently developing and testing.
More details and inspiration for this entry came from Steven Cohn’s blog here. I ran across it while banging my head against the wall trying to find out how to create a site on my Windows XP box.


