How do you work out the IIS Virtual Path for an application?

My problem running aspnet_regiis -lk was that I got an incomplete list of IDs and also I didn't know which ID corresponded to the Website i wanted to work on.

An easier way to find the IDs for your websites is by clicking on the "Website" node (folder) in IIS as in this picture. On the right side you should see a list of all websites with their "Identifier"s, State, IPs and ports.

Image showing IDs


I solved it. I had to use:

aspnet_regiis -lk to get a list of the folders in "IIS" format

Then I do something like:

aspnet_regiis.exe -norestart -s "W3SVC/1234567/root/AppName"

Tags:

Iis 6