Visual Studio 2010 Web deployment task failed

前端 未结 15 1502
花落未央
花落未央 2020-12-01 01:31

I am trying to use VS2010\'s 1-Click Publish feature to deploy a test site from my laptop to my server. I have the firewall turned off on both machines and the MS Deployment

相关标签:
15条回答
  • 2020-12-01 02:18

    Silly me, I didn't have .NET 4 installed on the server

    0 讨论(0)
  • 2020-12-01 02:19

    I was able to fix the same issue when I changed the "Service URL" which uses "Windows Management Service" from:

    https://ExampleURL:8172/msdeploy.axd?site=SiteName
    

    to this which uses "Remote Agent Service" instead:

    http://ExampleURL
    

    It worked just fine after that.

    0 讨论(0)
  • 2020-12-01 02:20

    Restart visual studio.

    I've had this one come up on a few occasions after having just successfully deployed a WebApp on a server running IIS 7.5. Obviously since a deployment/publishing was done successfully on the server just before this error came up, there was very little that could have gone wrong on the server setup/configuration (unless the previous successful deployment did something horribly wrong and removed some configuration parameters on the server).

    After having rebooted the server, checked that Web Management service and Web Deployment service were running correctly, and verified from cUrl tool that a GET of the MsDeploy.axd was successful there was only one thing left to do. Restart Visual Studio. Magically post restart of VS publish started working again. All on its own. Magical stuff, this Web Deployment :)

    0 讨论(0)
  • 2020-12-01 02:25

    I got this error because I changed my password. The deployment wizard still saved my old password, after retyped my password, everything works fine now.

    0 讨论(0)
  • 2020-12-01 02:25

    I've installed a couple of web servers and I keep getting this issue, so I'm posting my answer here so that I find it when I Google the problem.

    Basically I always install Web Deploy 3 from the Web Platform Installer. This is the first mistake. For some reason this only installs half the stuff you need. If you have installed this, uninstall it and download the Web Deploy installer. Then choose "Complete" install.

    If you are following this guide

    Then disregard option 1. It's a trap

    Start reading again from "2. Download the Web Deploy installer ..."

    0 讨论(0)
  • 2020-12-01 02:27

    I got 404 from a IE browser from https:// servername:8172/MsDeploy.axd

    But Chrome did not make trouble.

    This can be the first test to see if you can reach the Web Management service on the server at all. In other words: When chome worked (it responded with a blank page), then you have hole through to the service on the server.

    Still you also need to have permission to deploy to the specific site. In IIS find the site and do that in "IIS Manager Permissions" under Management.

    0 讨论(0)
提交回复
热议问题