Reg*_*for 12 msdeploy visual-studio webdeploy
我试图从命令行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
Run Code Online (Sandbox Code Playgroud)
并得到以下错误
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
Run Code Online (Sandbox Code Playgroud)
我添加了-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.
Run Code Online (Sandbox Code Playgroud)
命令本身很好,因为当我将命令中的目标机器更改为本地时,它可以工作.
我也遇到了同样的问题。这里给出的解决方案似乎有效:Web部署结果仅在VS2012中请求太长
一个可行的解决方案是使用 https 而不是 http 进行部署。这会在我的环境中生成证书警告,但它至少允许我进行部署。
| 归档时间: |
|
| 查看次数: |
3059 次 |
| 最近记录: |