Visual Studio 2012 Web Deploy to Windows Server 2008 R2 with IIS 7 and /msdeploy.axd 404 error

旧街凉风 提交于 2019-12-03 09:44:31

Fyi - I too was getting the 404 errors. It turned out that I had to download the full package and install everything.

http://www.iis.net/downloads/microsoft/web-deploy#additionalDownloads

I had this same error (ERROR_DESTINATION_NOT_REACHABLE). I was able to fix the issue by opening port 8172.

I then ran into the error: ERR_COULD_NOT_CONNECT_TO_REMOVESVC which I was able to resolve by installing every component of Web Deploy 3.0. It was trying to hit /MSDEPLOYAGENTSERVICE which by default isn't installed by the Web Deploy 3.0 installer.

I had to manually add the Deployment Handler. In IIS Manager, with the server selected, choose "IIS|Handler Mappings|Add Managed Handler...".

Request path: msdeploy.axd
Type: Microsoft.Web.Deployment.DeploymentAgentHandler,..., Version=9...
Name: Web Deploy Whatever

In my case, the default certificate issued for WMSVC was not issued for the machine-name. My Solution was to:

  1. Issue a certificate for the machine name from my domain CA. This could be self-signed if you're willing to trust the certificate.
  2. Install that certificate under the Personal certificate store
  3. stop the web management service
  4. change the certificate to my properly issued certificate
  5. restart the service.
user1524769

Did you check your handlers? You can test this by creating an HTML page on the same folder and trying to access that HTML. If you can, then go check that your site has the necessary handlers. Also, make sure your DNS record are pointing to the correct IP address.

First I tried just Repair install of Web Deploy 3.0 and not worked. Removing and installing solved my issue.

ITmeze

In my case I had both Web Deploy 2.0 and 3.0 on server machine. Removing both and installing just 3.0 solved my issue.

Ensure Web Management Service is started.

I deleted SSL certificate and the service stopped working.

If all previous indications fail, and if you are using an Azure virtual machine, where the endpoint for 8172 is open, I have solved it deleting the endpoint and opening it again. I believe the first time I have selected using Floating IP Enabled, and that did not work. Just create the endpoint again, select disable floating ip and done!

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