Web部署任务生成失败

场景:

我成功地成立了TFS2010 webdeploy任务解决scheme。 一切工作正常,直到suddendly在部署任务出错。

解决scheme有2个Web项目..这些configuration在构build部署,并将其发布到开发服务器。

有谁知道什么是错误的构build(下面的信息)?

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3847): Web deployment task failed. ((4.8.2011 11:01:10) An error occurred when the request was processed on the remote computer.) (4.8.2011 11:01:10) An error occurred when the request was processed on the remote computer. Unable to perform the operation. Please contact your server administrator to check authorization and delegation settings. 

如果有人需要,我可以提供更多信息。

我通过TFS构build时遇到了同样的问题。 当我试图手动导入网站时,我得到了一个更多的信息错误:“无法login用户\ WDeployConfigWriter”。

事实certificate,当你安装web部署,它设置了两个本地帐户WDeployConfigWriter和WDeployAdmin。 这些帐户的密码设置为过期。 所以重置Web服务器上的密码并设置为“永不过期”。 然后转到IIS中的pipe理服务委派。 每个呈现的规则都有一个UserName字段。 在哪里是WDeployAdmin或WDeployConfigWriter右键单击并将凭据更新为新的密码。

截图的完整解释可以在这里find: http : //workinghardinit.wordpress.com/2011/07/18/wdeployconfigwriter-account-issues-trouble-shooting-web-deploy-2-0-with-lessons-learned/

您只需重新运行位于“C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ Scripts \”中的脚本“AddDelegationRules.ps1”

这是首次安装Web部署时运行的脚本。 它将重新创build任何缺失的委托,重新设置WebDeployAdmin和WebDeployConfigWriter的密码,并将WebDeployAdmin添加回pipe理员组。

您仍然需要在重新运行脚本后,将每个帐户的密码设置为不过期。

我们有同样的问题 – 在我们的情况下,我们只使用MSDeploy (没有TFS )。 重置这两个本地帐户( WDeployConfigWriterWDeployAdmin )的密码解决了问题,因为他们的密码已过期 。 我们试图将密码策略更改为永不过期,但只有本地pipe理员才能这样做。