1

I'm having a frustrating issue using Visual Studio 2015 web deploy. My publish action is failing on one machine, but works OK on a different machine.

My solution is source controlled, so the code base is the same on both machines, and both build and run locally as normal. The publish profile (.pubxml) files are identical on both machines.

When I open the publish dialog (right click on project > publish), and click 'Validate Connection' on the Connection tab I get the green tick.

Validate Connection shows success

Opening the Preview tab and clicking 'Start Preview' gives me a list of files that have changed, as expected.

But clicking 'Publish' fails with an "ERROR_COULD_NOT_CONNECT_TO_REMOTESVC"

Publish Fails

I've tried all the troubleshooting tips I can find online.. but nothing is making a difference.

  • Stop/Start msdepsvc
  • Stop/Start wmsvc
  • Delete/Recreate IIS site
  • Uninstall/Install Web Deploy
  • Publishing to a different sub-domain

The confusing part is that I can publish successfully from a different machine, using the same settings.

What else could be causing the publish to fail, when all the settings are validating ok? Any suggestions would be very much appreciated.

Chris
  • 121
  • 1
  • 8

0 Answers0