Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Deploy (aka MsDeploy) returns ERROR_CONNECTION_TERMINATED

I am trying to execute from command line msdeploy like for example following command:

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync 
        -source:package="Templates\TemplateAppPool.zip" 
        -dest:appPoolConfig="MyAppPool",computerName="...",userName="...",password="..." 
        -replace:objectName=processModel,targetAttributeName=idleTimeout,replace=00:45:00 
        -replace:objectName=add,targetAttributeName=managedPipelineMode,replace=Integrated 
        -allowUntrusted

And getting following error

Info: Using ID '0b2ec654-ae21-4848-897d-f644d95b4bfa' for connections 
to the remote server.
Error Code: ERROR_CONNECTION_TERMINATED
More Information: Web Deploy experienced a connection problem with 
the server and had to terminate the connection.  Contact your server 
administrator if the problem persists.  Learn more at: 
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED

I've added -allowUntrusted to prevent possible errors with certificates on target machine. Because when I try to do it from VS 2013 it shows me error/warning about certificate on target machine. Anyway I am accepting wrong certificate and it goes further saying that it's all right with connection, but

when I try to publish from VS 2013 I am getting following

Start Web Deploy Publish the Application/package to 
https://remotehost:8172/msdeploy.axd?site=Default%20Web%20Site ...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4193,5): 
Error : Web deployment task failed. (Unknown ProviderOption:DefiningProjectFullPath. 
Known ProviderOptions are:skipInvalid.)
Publish failed to deploy.

Command itself is fine, because when I change target machine in command to local, it works.

like image 990
Regfor Avatar asked May 20 '14 09:05

Regfor


People also ask

What is web Deploy?

The Web Deploy is a tool for simplifying migration, management and deployment of Web applications, sites and servers. It can be used to package a Web site, automatically including content, configuration, certificates and databases. It can be used to synchronize between IIS 6.0, IIS 7.

How do I know if web Deploy is running?

Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.

What is web Deploy package?

This file, commonly known as a web deployment package (or simply a deployment package), contains all the content and configuration information that IIS needs in order to re-create your web application on a web server. Once you've created a web deployment package, you can publish it to an IIS server in various ways.

Where is web deployment Agent Service?

To check that the Web Deployment Agent Service is runningOn the Start menu, point to Administrative Tools, and then click Services. Locate the Web Deployment Agent Service row, and verify that the Status is set to Started. If the service is not already started, click Start.


2 Answers

I was having the same problem. The solution given here seems to work: Web deploy results in Request too long only in VS2012

A working solution was to use https instead of http to deploy. This generates certificate warnings in my environment, but it at least lets me deploy.

like image 72
Vivian River Avatar answered Oct 18 '22 23:10

Vivian River


Fiddler and other local proxy-based software can interfere with the server connection. Try disabling or closing Fiddler and re-attempting the connection. If Fiddler is not in use, Microsoft's web-deploy documentation covers most other web deployment problems.

like image 20
Charles Burns Avatar answered Oct 19 '22 00:10

Charles Burns