Getting a 404 from WMSvc via MSDeploy.exe

为君一笑 提交于 2019-11-27 17:16:15

Have you installed Web Deploy on the server? Web Deploy registers a handler (/msdeploy.axd) with WMSVC, so a 404 would be the expected status code if it weren't installed.

VeeTheSecond

In case someone else is having the same issues than what I am having, I also got the same 404 error. The quickest way I found to check was to go on the server itself, and open up "https://<servername>:8172/MsDeploy.axd". Chrome & Firefox just showed a blank page, so I had to use the Network tab of the developer tools (F12) to see the actual 404 error message.

Somehow, while installing Web Deploy 3.0 from the Web Platform Installer, the IIS 7 Deployment Handler didn't get installed, even though the IIS Manager UI Module did. In my case, I downloaded the Web Deployment Tool Installation .msi from the following link: Web Deployment Tool Installation. Then I had to go back to IIS Admin Tool (Start -> Run -> inetmgr.exe) > {server name} > click on Management Service icon, and restart the management service before the MsDeploy.axd handler started working.

Enabling IIS Deployment Handler + Remote Agent Service

On Windows 2012 R2 Server I followed mga911's advice.

I was stuck getting deploys working. Had installed Web Deploy 3.5 -> Enabled Management Service Delegation -> Ensured Services were started. The problem was the IIS Deployment handler had not been installed. Going through Web PI 4.6 I was not given the opportunity to install the IIS deployment handler. You need to go into the control panel -> Programs and Features Change Web Deploy 3.5's installation. Please note my instructions. In the change process it indicates all the sub packages will be installed but the text message says 0 of 3 sub components will be installed. One of those components is the IIS handler. Read carefully because I didn't and was frustrated :)

  • Control Panel > Programs and Features
  • Right Click on Microsoft Web Deploy 3.5
    • Select Change > click next > click change
    • You'll notice when Web Deployment Framework is selected you'll see in the message "It has 0 of 3 subfeatures selected"
    • Click on drop down select "Entire feature will be installed on local hard drive"
    • Next > Change >Finish

One important point I think is that you have to turn on the Management service first and then install Web Deploy.

I did it the other way around and it didn't work.

Only by reinstalling Web deploy did it start working.

When I installed Web Deploy via the web platform installer the Handler was not selected. I had to manually install Web Deploy 3.0, click"change" and then select the Handler to be installed.

Laurent

After hours of searching, doing your solution below worked for me !!

Control Panel > Programs and Features

Right Click on Microsoft Web Deploy 3.5

Select Change > click next > click change

You'll notice when Web Deployment Framework is selected you'll see in the message

 "It has 0 of 3 subfeatures selected"

Click on drop down select "Entire feature will be installed on local hard drive"

Next > Change >Finish

In my case, when installing the web deploy 3.0 package through the web pi i never got the Management Service Delegation option in IIS /home .. reinstalling it rectified the issue however, thus resolving Resolved my 404.7 error.

This was under Microsoft Server 2012 and IIS8

Edit: I just recently tried the very same thing on Windows 8 and would like to point out that the microsoft website states:

You cannot set up remote publishing using Web Deploy for a site that is hosted in IIS on Windows 8.0 or 8.1. The reason is that the client SKUs for Windows do not come with the Web Management Service that is required for remote connections. As a result, on Windows 8.0 or 8.1, the IIS Manager Permissions icon and the Configure Web Deploy Publishing deployment option that are required to configure remote publishing are not available in the IIS Manager. http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-deploy-on-iis-80-or-later#00

(Yes i realize the target is Server 2012 in the question but this could save a lot of people from having the same headache as me, since this worked just fine on my old dev machine i wanted to let people know.)

Rather than using Web Platform Installer. Download the WebDeploy.exe from the website and install it on server with Complete package option.

It will fix the issue.

Additionally you might need to grant access for the Web Management Service

I also had the problem of Visual Studio (2013) couldn't update the app on my server (Windows 2012 R2 IIS 8.5). I added the components manually as described above, but that didn't solve the problem. Then I found this article.

It basically says that the Web Management Service is logged on as Local Service which doesn't have access rights to the Inetpub directory. Granting permissions for Local Service solved the problem for me.

Used only windows auth. Web deploy 3.5. And only the WMSVC certificate which is set in the Management Service icon of the top level server icon.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!