How to configure Web Deploy publishing feature on IIS so developer can publish? How to configure Web Deploy publishing feature on IIS so developer can publish? asp.net asp.net

How to configure Web Deploy publishing feature on IIS so developer can publish?


It appears that one must still download the Web Deploy extension. Also, Version 3.5 is now available.

To download on a server, default IE security rules will require you add something like http://*.microsoft.com as a trusted site else you can't download the installer.

The whole package is rather large in its purpose and covers many deployment/backup/transfer type scenarios for IIS. So, when you install it, it turns into "Web Platform Installer 4.6" and installs roughly 10 prerequisites in addition to Web Deploy 3.5. Those prerequisites covers CLR Types, SQL Server framework (even if you don't have SQL Server installed), SQL Server shared management objects, etc. I did check afterwards if all these items are uninstallable through control panel (in case I changed my mind about web deploy) and they are there.

Finally, to configure web deploy on a site, I found this document:

http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler

To find more information about this, google "web deployment handler".

It also does appear that you can configure secure authentication, which is the main reason I went down this Web Deploy publishing path instead of using plain clear-text FTP. However, http://www.iis.net/learn/publish/using-web-deploy/introduction-to-web-deploy says

Web Deploy is secure. Web Deploy supports transfer over HTTPS. Note that variants of FTP such as SFTP and FTPS are also secure.

I'm not sure if this means I will have to use an SSL certificate anyway. I was hoping Web Deploy provided more authentication options that were both secure and didn't need a certificate.


The answer marked correct pointed me in the right direction to publish a web site from Visual Studio 2013 to Server 2012. The Validate Connection button kept stating check Web Management service is installed.

As of April 2014 these simple steps work:

Install Web Deploy

In Powershell:
 (from: https://www.orcsweb.com/blog/jamie-furr/manage-and-install-iis8-on-windows-2012-server-core/)

  • Install-WindowsFeature Web-Server
  • Install-WindowsFeature Web-Mgmt-Service
  • Set-ItemProperty -PathHKLM:\SOFTWARE\Microsoft\WebManagement\Server -NameEnableRemoteManagement -Value 1
  • Net Stop WMSVC
  • Net StartWMSVC
  • netsh advfirewall firewall add rule name=”Allow WebManagement” dir=in action=allow service=”WMSVC”

In IIS:
 (from http://blog.richardszalay.com/2013/02/02/building-a-deployment-pipeline-with-msdeploy-part-4-server-configuration/)

  • Create a new non-admin user
  • Once your user is created, we needto grant it permission to deploy the site. Right click on yourwebsite and select “Configure for Web Deploy Publishing…” from the“Deploy” sub menu