Web部署(aka MsDeploy)返回ERROR_CONNECTION_TERMINATED [英] Web Deploy (aka MsDeploy) returns ERROR_CONNECTION_TERMINATED
问题描述
我正在尝试从命令行msdeploy执行,例如以下命令:
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
并出现以下错误
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
我添加了-allowUntrusted以防止目标计算机上的证书可能出现错误.因为当我尝试从VS 2013中执行此操作时,它会向我显示错误/有关目标计算机上证书的警告.无论如何,我接受错误的证书,并且进一步说,连接没问题,但是
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
当我尝试从VS 2013发布时,我正在关注
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.
推荐答案
Fiddler 和其他本地代理-基于软件的软件可能会干扰服务器连接.尝试禁用或关闭Fiddler并重新尝试连接. 如果未使用Fiddler,则
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.
这篇关于Web部署(aka MsDeploy)返回ERROR_CONNECTION_TERMINATED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!