- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在将 MSDeploy 集成到我的构建过程中,但在身份验证时遇到问题。以下命令运行良好:
msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=Administrator,password=secret -dest:package=c:\DeployTest\KPC.zip
但是,这不起作用:
msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=kpcpublish,password=secret -dest:package=c:\DeployTest\KPC.zip
并产生错误:
Error Code: ERROR_USER_NOT_ADMIN
More Information: Connected to '192.168.0.11' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administ
rator on '192.168.0.11'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
我已按照上面链接中的说明进行操作,以及任何 other docs I could find ,几乎都说同样的事情:
.
Publish enabled for 'SERVER\kpcpublish' Granted 'SERVER\kpcpublish'
full control on 'C:\Website' Successfully created settings file
'C:\Users\Administrator\Desktop\SERVER_kpcpublish_KitchenPC.PublishSettings'
我一定缺少某些步骤,但我就是不知道可能是什么。
更新:
使用 computerName
属性的完整 HTTP 路径时,出现错误:
Error Code: ERROR_DESTINATION_NOT_REACHABLE More Information: Could not connect to the remote computer ("192.168.0.3"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DES TINATION_NOT_REACHABLE. Error: Unable to connect to the remote server Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection fa iled because connected host has failed to respond 192.168.0.3:8192 Error count: 1.
我已经检查过,Web 管理服务确实正在运行。
另一个更新:
我已经完全铺好系统并从头开始重新设置。我没有做任何异常的事情,只是安装了 IIS 角色,并确保选中管理工具下的“管理服务”,这是 WMSVC 运行所必需的。然后我安装了 Web PI,并安装了“托管提供商的推荐配置”,这将安装 Web Deploy 3.0。然而,我确实注意到安装时出现了错误(我相信我上次也遇到了这个错误)。它看起来像:
我还附上了日志文件 here .
然后我尝试手动安装 Web Deploy 3.0,但它说它已经安装。接下来我直接从http://www.iis.net/download/webdeploy下载了MSI并在“修复”模式下运行它。这似乎奏效了。我还注意到 WMSVC 服务已启动并正在运行。所以这看起来不错。
尽管如此,MSDeploy 仍无法连接。我认为这可能是某种防火墙问题,所以我在本地运行它。我尝试过使用 HTTPS 和 HTTP 进行连接。 HTTPS 给我一个错误,HTTP 只是在 2-3 分钟后超时。
HTTPS:
msdeploy -verb:sync -source:appHostConfig="Default Web Site",computerName=https://STAGING:8172/msdeploy.axd,userName=Administrator,password=Khorf123 -dest:package=c:\DeleteMe.zip
Info: Using ID 'f3a54096-adc4-4f54-9e4f-ad8fde12edb6' for connections to the remote server.
Error Code: ERROR_CERTIFICATE_VALIDATION_FAILED
More Information: Connected to the remote computer ("staging") using the specified process ("Web Management Service"), but could not verify the server's certifi
cate. If you trust the server, connect again and allow untrusted certificates.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.
Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Error: The remote certificate is invalid according to the validation procedure.
Error count: 1.
HTTP:
msdeploy -verb:sync -source:appHostConfig="Default Web Site",computerName=http://STAGING:8172/msdeploy.axd,userName=Administrator,password=Khorf123 -dest:package=c:\DeleteMe.zip
Info: Using ID 'ebee66f0-08e5-4d9d-98ea-0c2e59784895' for connections to the remote server.
Error: Could not complete the request to remote agent URL 'http://staging:8172/msdeploy.axd'.
Error: The operation has timed out
Error count: 1.
最佳答案
(更新于 2016-03-07 - 注意:非管理员部署还需要在 msdeploy.axd
之后使用 ?site=IIS_SITE_NAME
,否则连接被视为全局连接并需要管理员访问权限)
不确定最初是如何错过这个的,但您的问题是 computerName
参数。仅在使用 WMSVC 时支持非管理员部署,您需要为此指定完整的 URL。
尝试以下操作
msdeploy -verb:sync ^
-source:appHostConfig="KitchenPC",computerName=https://192.168.0.3:8172/MsDeploy.axd,userName=kpcpublish,password=secret,authType=Basic ^
-dest:package=c:\DeployTest\KPC.zip
The computer name will be translated to the default Web Deploy URL. For example, computerName=Server1 will become http://Server1/MsDeployAgentService. If the remote service is running with a custom port or URL, you must specify the full URL
和from the install instructions :
The MSI will not install the Web Management Service handler component if the Web Management Service is not installed; the handler component is necessary for non-administrator deployments
(我找不到更明确的规范来源将 WMSVC 描述为非管理部署的要求)
关于asp.net - MSDeploy.exe 可以以管理员身份连接,但不能以任何其他 Windows 帐户身份连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12984960/
我知道 the -skip parameter ,但是有没有办法告诉 MSDeploy 跳过多个目录?多次调用参数似乎不起作用。 最佳答案 如果您的文件夹C:\Data\Personal\My Rep
我们正在尝试使用 Web Deploy 来改进我们的部署。 一切都在内部运行,但一旦我们尝试部署到我们的在线环境,msdeploy 就会挂起大于 1 MB 的文件。 如果我们删除这些文件,同步将与 m
任何人都可以确认(最好通过文档链接)在文件同步之前是否完整上传了 MSDeploy 包,或者同步是否发生在 msdeploy.exe 和 msdeploy.axd 之间(仅上传修改过的文件)? 或者,
使用 msdeploy 和 msdeploy.axd 处理程序时,任何部署到我的远程服务器的尝试都会遇到 401 未授权错误,并且服务器会记录 IISWMSVC_AUTHORIZATION_SERVE
我向 msdeploy 传递了几个跳过参数,以便不同步(删除和更新)某些目录和文件 -skip:skipAction='Update',objectName='filePath',absoluteP
我可以使用MSDeploy的配置转换机制来转换其他文件吗? 最佳答案 (另一种方法) msdeploy 打包是在项目的 MSbuild 运行期间调用的。 TransformXml 是 .csproj
有人可以解释(比 technet/msdn 文档更好)汽车供应商究竟是做什么的,它是如何工作的,以及何时使用它。 这与 Web 部署有关。我看过很多指定 -dest:auto 的文档,但对我来说并没有
我有一个 Web Deploy 3.5 包,我想将其部署到远程服务器。如何在 MSDeploy.exe 命令行上指定站点名称? 这是我到目前为止所拥有的: C:\Program Files (x86)
是否可以将文件夹(纯 Html 文件)的内容部署到远程 IIS6/7 服务器上的特定 Web 应用程序? 以下命令不会出错,但也不会将任何文件发布到远程服务器: msdeploy.exe -verb
我无法让它工作 call "%MSDeployPath%msdeploy" -verb:sync -source:runCommand='backup.bat param1' -dest:auto,c
我有一个 psake 脚本来管理我的部署,过程如下: 编译并运行测试 使用 msbuild 生成部署包 检查我们是在内部还是外部部署 如果是内部的,则执行生成的cmd文件 如果是外部的,则提示输入用户
我已经为 MVC 项目创建了一个包含 Bamboo 的 CI。构建工作正常,但问题在于使用 msdeploy 进行部署。下面是Bamboo中部署的配置 问题在于发送到 msdeploy 的参数,如下所
我有一个 Web 应用程序,我正在尝试使用 MSDeploy.exe (Web Deploy 2) 将其部署到 Web 服务器上 我尝试了4种情况: 通过VS2010发布方法,设置如下: 发布方式:W
是否可以使用 MSDeploy 修改(或替换)现有站点的 web.config? 最佳答案 可以替换 Web 配置文件的某些部分(使用 xPath 查询或正则表达式指定)。为此,请使用 -declar
我有一个 .zip 包,我想将其从我的开发计算机安装到开发服务器上。所以我使用 msdeploy 来自动执行此操作。 msdeploy.exe -verb:sync -source:package=D
我正在使用 MSDeploy 移动许多 IIS 网站,我遇到了一个问题,我试图在移动过程中包含 3 个注册表项,但并非所有 3 个注册表项都存在于每个网站上。 所以问题是:是否有办法让 MSDeplo
这看起来应该非常简单,但它对我不起作用而且我没有想法。 我想做的就是在使用 msdeploy 部署包时设置物理路径,这样它就不会转到默认的 inetpub\wwwroot 位置。 msdeploy -
我有一个包含大量文件的网站,使用团队构建并通过 Web 部署包进行部署。我遇到的问题是,软件包是从农场的一台机器构建的,时间戳并不总是匹配。默认情况下,Web 部署意味着完整的站点滚动,并且有如此多的
要求:我有 zip 包,需要将其部署到 IIS 下的特定站点(例如 dev.sitename.org)。 之前,我们在默认网站(IIS 下)下有站点,我们使用以下命令来部署它。>>msdeploy -
我已经找到了如何设置应用程序池和默认值 有人知道如何设置“IIS Web应用程序名称”吗?它在 SetParameters.xml 文件中生成为 我可以覆盖SetParameters.xm
我是一名优秀的程序员,十分优秀!