gpt4 book ai didi

visual-studio - Web 部署(又名 MsDeploy)返回 ERROR_CONNECTION_TERMINATED

转载 作者:行者123 更新时间:2023-12-04 01:04:05 29 4
gpt4 key购买 nike

我正在尝试从命令行 msdeploy 执行,例如以下命令:

"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 执行此操作时,它会向我显示有关目标机器上证书的错误/警告。无论如何,我接受了错误的证书,并且进一步说连接没问题,但是

当我尝试从 VS 2013 发布时,我得到了关注
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.

命令本身很好,因为当我将命令中的目标机器更改为本地时,它可以工作。

最佳答案

Fiddler和其他基于本地代理的软件可能会干扰服务器连接。尝试禁用或关闭 Fiddler 并重新尝试连接。
如果未使用 Fiddler,则 Microsoft's web-deploy documentation涵盖了大多数其他 Web 部署问题。

关于visual-studio - Web 部署(又名 MsDeploy)返回 ERROR_CONNECTION_TERMINATED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23756339/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com