IIS 7 and Above
IIS 7.5: possible to convert "application roots" to virtual directori...
Last post Dec 18, 2011 09:36 PM by qbernard
Dec 15, 2011 04:33 PM|cewyattjr|LINK
You can see by the title, I'm just wondering if there's a way to avoid a lot of manual labor. We have a lot of legacy application roots we've ported over to IIS 7.5 from IIS 6. For the vast majority they are really just serving as a virtual directory.
Is it possible to somehow "convert them" to a Virtual folder instead? Not seeing anything obvious in the IIS Management interface.
Dec 16, 2011 12:51 AM|qbernard|LINK
Not straight forward, best way is to use appcmd.exe, script it to remove the app then add the vdir back.
Dec 16, 2011 08:36 AM|cewyattjr|LINK
Another thought I had... I've got XML that is exported via the Migration tool from IIS 6, I suppose I could see about scripting through that and see if there's some way to find/replace the relevant bits of text, but that's just a theory at the moment.
Will look into appcmd.exe thanks!
Dec 18, 2011 09:36 PM|qbernard|LINK
Direct edit xml config file is another way also, however you need to know the exact syntax, do a backup first. any error on parsing the xml will cease the IIS from loading the config :)
Appcmd still the preferred method.