问题
Using Web Deploy 3.6 both on IIS 8.5 (Windows Server 2012 R2) and IIS 7.5 (Windows 7), I cannot find the Deploy -> "Import Web Application" option. The "Export Web Application" is also missing (see screenshot)
I can still see the "Install Application from Gallery" but that does not really help. All works fine with Web Deploy 3.5.
Are the Import / Export Web Application options removed in 3.6? If yes, what is the alternative to deploy a standard ASP.NET MVC app to IIS 8.5 with Web Deploy 3.6? If not, what do I need to do to enable / see them again?
回答1:
WebDeploy 3.6 prerequisites for Import / Export Web Application slightly changed and more rights need to be given for web management to enable these options again.
Here are the steps to allow it again in Windows Server 2012 R2 (and Windows Server 2016):
Using Server Manager get to Add Roles and Features.
Pick ‘Management Service’ under Roles/Web Server/Management Tools
Either uninstall and reinstall WebDeploy 3.6 or use the Change option and make sure to install the “IIS Deployment Handler” for Web Deploy. This will bring back the Import / Export Web Application option again.
Steps to allow it again in Windows 7:
Go to Turn Windows features on or off
Under Web Management Tools -> enable IIS Management Service
same as above for Windows 2012 (for Windows 10 you will likely need to run a repair installation on WebDeploy before this solution works)
回答2:
Download "Web Platform Installer" from here: https://www.microsoft.com/web/downloads/platform.aspx
Then search "Web Deployment Tool 2.1". I have it in Spanish like this: "Herramienta de implementación web 2.1"
It just worked for me.
回答3:
Try to run IIS as administrator and you should see the Import Web Application" option and The "Export Web Application".
回答4:
Download
http://go.microsoft.com/?linkid=9684516 (x86) http://go.microsoft.com/?linkid=9684517 (x64)
and during installation select Change option and enable IIS manager UI Module feature.
来源:https://stackoverflow.com/questions/41386690/missing-import-web-application-option-in-web-deploy-3-6