Missing "Import Web Application" option in Web Deploy 3.6 - iis

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?

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)

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.

Windows 10:
It uses Microsoft Web Deploy 4.0. You can check if it's already installed in the Control panel > Applications.
If it's already installed, and you can't see the "Deploy" option in IIS, you need to reinstall it and, during the setup, choose the custom or full install, including the UI options. Perhaps you can do that by choosing repair or Change from the control panel.
According to MS, You should be able to download it from Web Platform Installer, but I only found versions up to 3.6. However, I found this link for an stand-alone installer for 4.0:
webdeploy_amd64_en-us.msi
NOTE: I'm using an Spanish Windows, so the name of the options can be wrong. For anyone using a non-English Windows, there is only one installer, and you'll see the menus and options in your language (at least in Spanish).

Try to run IIS as administrator and you should see the Import Web Application" option and The "Export Web Application".

Related

How to configure Web Deploy on Windows 10 pro

How can I configure Web Deploy on Windows 10? Should it work?
I found information about Web Deploy on Windows 8, there it isn't working.
How is it in Windows 10?
Microsoft is being super sneaky about this, but it appears they have removed the ability to use web deploy remotely from ALL non server os's. Even in Windows 7, if you do all of the newest updates, the deploy menu vanishes in IIS. So if you want to use web deploy it seems like your only option is to shell out some bucks for a server os.
HOWEVER, I was able to get FTP publishing configured and working on my Windows 10 machine, which works almost as well. Just install the FTP server under control panel => programs and settings => install windows components. Then open iis mgr and right click on your site and a configure FTP publishing option should pop up. The configuration is a pain and not straightforward, but if you mess with it you'll figure it out.
Then in Visual Studio right click on your project, hit publish, then in the first screen in the drop down there is the good old fashioned ftp option. Good luck!
EDIT
From OP's response, another solution is to simply share the root folder on the server, so for example
C:/inetpub/www
Then mount that share on your development box, I mounted it as the P:\ drive for production, and Q:\ drive for qa. Then in visual studio on the publish screen just select deploy to file system and deploy to that mapped drive, works like a charm and is far simpler than setting up FTP.
Ok, I did this (in Windows 10):
Uninstalled Web Deploy 3.6 from control panel(didn't help).
Downloaded Web Deploy 3.6 installer, then ran uninstall from the installation menu.
Downloaded Microsoft Web Platform Installer 5.0.
From the Web Platform Installer 5.0, I installed Web Deploy 3.5 + Web Deploy 3.5 without bundled SQL Support
I seem to have the deploy context menu back when I right click a site.
Make sure you do the following:
Install web Deploy 3.6
Go to Server Manager > IIS
Under Server Roles go down to Web Server (IIS), expand this tree and select Management Tools.
Make sure "Management Service" is checked
Go to Services, Make sure "Web Management Services" is started. (go ahead and make it automatic while you're in there).
Now you'll see the "Configure Web Deploy Publishing" option under the Deploy menu on IIS. From there make sure you have port 8172 open from the IP you are publishing from.
Installing WebDeploy 2.1 (available from the Web Platform Installer) gives you a 'Deploy' option on your website in Windows 10
See: https://serverfault.com/questions/253292/why-dont-i-have-deploy-actions-available-in-iis-7-manager

IIS Web Deploy's "Import/Export Application" Action Missing?

I had a working IIS 7.5 with Web Deploy 3.5 configuration such that the "Import/Export Application" feature in the right hand action pane showed up and functioned properly. Unfortunately I had to remove and reinstall IIS, and now the Import/Export functionality does not show up in the Actions pane, as if Web Deploy was not installed.
I tried to reinstall using the automated installer at http://www.iis.net/downloads/microsoft/web-deploy, but when I run it, the installer seems to think that Web Deploy is already installed and does not offer me any reinstall/uninstall option.
How can I force a reinstall of WebDeploy or force IIS to recognize that Web Deploy is still installed?
Go to http://www.iis.net/downloads/microsoft/web-deploy
Scroll to the bottom of the page to the "Download Web Deploy" header
Click the x86 or x64 link next to your language of choice. Do not click the WebPI link.
Once downloaded, click on the installer to open it.
Click Next
Click the Remove button
Now you can reinstall it using the Web Platform Installer, or just use the standalone.
On a side note...
If you don't see the Deploy options in IIS once you've reinstalled Web Deploy, try running IIS as Administrator. Hope this helps.
I am running IIS on my development machine on Windows 7. Web Deploy 3.6 seem to break something as the Import / Export Application options are not available. Had to uninstall 3.6 via control panel add/remove programs and then install 3.5 via Web PI.
I've installed Web Deployment Tool 2.1 then restart IIS Manager and the Import/Export Application appeared.
I was running a 'gallery template' Windows Server 2012 VM on Azure. Web Platform Installer said Web Deploy 3.5 was already installed. At first I thought this neat feature had been removed/moved.
In Add/Remove Programs, saw that Web Deploy 3.6 Beta was installed. Removed it and reinstalled 3.5 (without SQL stuff) via Web PI.
Ran IIS Manager as admin and all works fine.
Update - A new Azure VM also had this problem, but had 3.6 Beta3 installed. Again, removed and reinstalled 3.5 via WebPI.
None of the other answers here fixed this for me with Visual Studio 17 on Windows 10. The fix was here: https://developercommunity.visualstudio.com/content/problem/230372/web-deply-40-msi-location.html
Web Deploy 4 has moved to be distributed with Visual Studio 2017. This is nuts because the Web Deploy service and the Import/Export tools are for server administrators and not devs. The discussion in the link says they are working on adding Web Deploy 4 to the Web Platform Installer, but have encountered a few issues (read: we didn't create a proper deployment for it the first place.)
The fix for me was to uninstall Web Deploy 4 from Control Panel-Apps & features, then reinstall from the MSI provided with Studio. Look in C:\ProgramData\Microsoft\VisualStudio\Packages for a folder like Microsoft.VisualStudio.WebDeploy.Msi,version=...,chip=x64. The MSI file is within that. More detail in the link I mentioned.
My guess is if the IIS Manager is not turned on at the time Studio (and therefore Web Deploy) is installed, the hook for Import/Export can't be created.
My situation is slightly different as I never had the import/export menus. For what it's worth:
I tried to install the Web Deploy installer. It said that a newer version was installed. I tried repairing Web Platform Installer. Nothing changed. I tried changing but was told there were individual components. I tried uninstall/reinstalling WebPlatformInstaller.
After that, the IIS Manager showed a Web Platform Installer icon under the Management section after restarting, but still no Deploy menu on the right click.
Double-clicking that icon started the installer where I could then search for web deploy. There was a Web Deployment Tool 2.1 that was not installed. Clicking Add then Install and restarting IIS Manager (not run As Administrator) was all that was needed to get the Deploy menu:
According to this Microsoft document, the Web Platform Installer should have started automatically. Never did. But it is in the start menu. The steps are the same weather you start it from IIS Manager or standalone.

HTTP Error 404.3-Not Found in IIS 7.5

I'm using IIS 7.5 on Windows Server 2008 R2 x64 Enterprise Edition. In the project we have developed with ASP.NET 4.0 we used WCF Service. But it doesn't run over domain when the software is running from local computer. Otherwise, I am getting the following error:
HTTP Error 404.3-Not Found
The page you are requesting cannot be served because of the extension
configuration. If the page is script, add a handler. If the file should
be downloaded, add a MIME map.
You should install IIS sub components from
Control Panel -> Programs and Features -> Turn Windows features on or off
Internet Information Services has subsection World Wide Web Services / Application Development Features
There you must check ASP.NET (.NET Extensibility, ISAPI Extensions, ISAPI Filters will be selected automatically). Double check that specific versions are checked. Under Windows Server 2012 R2, these options are split into 4 & 4.5.
Run from cmd:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
Finally check in IIS manager, that your application uses application pool with .NET framework version v4.0.
Also, look at this answer.
In my case, along with Mekanik's suggestions, I was receiving this error in Windows Server 2012 and I had to tick "HTTP Activation" in "Add Role Services".
In windows server 2012, even after installing asp.net you might run into this issue.
Check for "Http activation" feature. This feature is present under Web services as well.
Make sure you add the above and everything should be awesome for you !!!
I was having trouble accessing wcf service hosted locally in IIS. Running aspnet_regiis.exe -i wasn't working.
However, I fortunately came across the following:
Rahul's blog
which informs that servicemodelreg also needs to be run:
Run Visual Studio 2008 Command Prompt as “Administrator”.
Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation.
Run this command servicemodelreg –i.

IIS 7.0 IIS Manager does not have the option "Manage Packages" available

Trying to deploy a mvc package, but looking at the instructions here:
http://vishaljoshi.blogspot.com/2009/07/importing-web-package-into-iis-manager.html
I do not see the "Manage Packages" option visible when I got to IIS Manager->Default Web Site
This is 2008R2 vanilla...
What am I doing wrong?
I was having this same problem. What I did to solve this in Windows 7 was:
Go to Add or remove programs
Search for Microsoft Web Deploy 2.0
Uninstall it (it was already installed on my machine)
Download the Microsoft Web Deploy 2.0 installation package here.
Run the installer as Administrator
Then go to Start -> Search programs and files and type InetMgr.exe hit enter and finally find the Deploy section under the Actions pane in IIS.

How to register ASP.NET 2.0 to web server(IIS7)?

I have a web-page application already created, but when I open it in visual studio 2008, it says there that:
ASP.NET 2.0 has not been registered on the Web Server. You need to
manually configure you Web server for ASP.NET 2.0 in order for your
site to run correctly.
I'm using asp.net 2.0, IIS7 and running on vista home premium.
How to register ASP.NET 2.0 to my web server(IIS7)?
ASP .NET 2.0:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir
ASP .NET 4.0:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
Run Command Prompt as Administrator to avoid the ...requested operation requires elevation error
aspnet_regiis.exe should no longer be used with IIS7 to install ASP.NET
Open Control Panel
Programs\Turn Windows Features on or off
Internet Information Services
World Wide Web Services
Application development Features
ASP.Net <== check mark here
If anyone like me is still unable to register ASP.NET with IIS.
You just need to run these three commands one by one in command prompt
cd c:\windows\Microsoft.Net\Framework\v2.0.50727
after that, Run
aspnet_regiis.exe -i -enable
and Finally Reset IIS
iisreset
Hope it helps the person in need... cheers!
If you installed IIS after the .Net framework you can solve the porblem by re-installing the .Net framework. Part of its install detects whether IIS is present and updates IIS accordingly.
Open Control Panel
- Programs
- Turn Windows Features on or off
expand - Internet Information Services
expand - World Wide Web Services
expand - Application development Features
check - ASP.Net
Its advisable you check other feature to avoid future problem that might not give direct error messages
Please don't forget to mark this question as answered if it solves your problem for the purpose of others
The system I was working on is Windows Server 2008 Standard with IIS 7 (I guess that my experience will apply for all Windows systems of the same age).
Running
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
SEEMED to work, as
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -lv
showed the .Net framework v4 registered with IIS.
But, running the same for .Net v2, namely
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir
did NOT result in
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -lv
showing the framework registered.
(And, for me, the installer for Kofax Capture Network Server was still missing ASP.NET.)
The solution was:
Open Server Manager
Go to Roles/Web Server (IIS)
Push Add Role Services
check ASP.NET under Application Development (and press Install)
After that, aspnet_regiis.exe -lv (either version) shows the framework registered.
(And the Kofax installer was also happy and worked.)
I got it resolved by doing Repir on .NET framework Extended, in Add/Remove program ;
Using win2008R2, .NET framework 4.0

Resources