This is similar to KLUDGE, but I found a way to do what I want.
First, open the Internet Settings tab of the project properties in Visual Studio. Set the virtual directory http://localhost/someDirectory . You cannot install it on http://localhost/ at this moment, as this will result in an error. Create your website in the directory (on disk) where you want to place it.
Then open the .proj file in notepad and find http://localhost/someDirectory ; change it to http://localhost .
Now go to IIS settings and change the home directory of your website to the directory where the website is built on disk.
Finally, reopen the project in Visual Studio. Go to the web settings tab of the project properties and make sure that it is configured to use the virtual directory http://localhost/ .
Daniel Allen Langdon
source share