IIS 7 and Above
How to find out what IIS roles to need to be installed to run the web...
Last post Jul 29, 2015 05:03 AM by Pengzhen Song - MSFT
Jul 23, 2015 08:54 AM|berzns|LINK
We have few IIS web servers for out Dev environment. Our development guys use Visual studio to develop their web sites. When I asked them what IIS roles does you web site need they were unable to answer that questions.
So my questions is how to find out what IIS roles need to be installed on the Web server to run the website?
Jul 23, 2015 11:38 AM|tweenet|LINK
One thing you can try is MSDeploy, download it:
then get the dependencies for a site:
msdeploy.exe -verb:getDependencies apphostconfig="default Web site"
I don't use it, so I don't know how well it works, but it could be a start.
Jul 27, 2015 05:59 AM|berzns|LINK
Thanks for the advice but the command didn't work.
This is what I got when running the command:
Error: Unrecognized argument 'apphostconfig="default Web site"'. All arguments must begin with "-".
Error count: 1.
Then I altered the command to:
msdeploy.exe -verb:getDependencies -source:apphostconfig="default Web site"
This is the response:
<apppoolInUse name="DefaultAppPool" definitionIncluded="False" />
This is not the expected outcome.
Jul 29, 2015 05:03 AM|Pengzhen Song - MSFT|LINK
According to your description, it seems that your development guys are using VS and IIS express. As I know, we have no tool or command line to detect the IIS roles. And IIS express support mostly features by default.
If you have IIS server hosting the website, you can use the followed command line to detect. The command mainly is used to migrate server or website.
msdeploy -verb:getDependencies -source:webServer
If not, maybe you should consult your IT team or you can post more information about your website. And then we will try our best to help you.