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.
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!
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 :)
cewyattjr
2 Posts
IIS 7.5: possible to convert "application roots" to virtual directories?
Dec 15, 2011 08:33 PM|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.
Thanks,
Chuck
virtual folder application root
qbernard
5011 Posts
MVP
Moderator
Re: IIS 7.5: possible to convert "application roots" to virtual directories?
Dec 16, 2011 04:51 AM|LINK
Not straight forward, best way is to use appcmd.exe, script it to remove the app then add the vdir back.
Bernard Cheah
cewyattjr
2 Posts
Re: IIS 7.5: possible to convert "application roots" to virtual directories?
Dec 16, 2011 12:36 PM|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!
qbernard
5011 Posts
MVP
Moderator
Re: IIS 7.5: possible to convert "application roots" to virtual directories?
Dec 19, 2011 01:36 AM|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.
Bernard Cheah