Web 部署任务构建失败 [英] Web deployment task build failed

查看:26
本文介绍了Web 部署任务构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:

我成功设置了 TFS2010 webdeploy 任务以解决问题.一切正常,直到部署任务突然出现问题.

I set up successfully TFS2010 webdeploy task for solution. Everything worked fine until suddendly something went wrong in the deployment task.

解决方案有 2 个 Web 项目.这些项目被配置为在构建时部署并将其发布到开发服务器.

Solution has 2 web projects..those are configured to deploy on build and publish it to the dev-server.

有人知道构建中有什么问题吗(信息如下)?

Does anybody have a knowledge what is wrong in build (information below)?

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.

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

I can give more information if someone needs it.

推荐答案

我在通过 TFS 构建时遇到了同样的问题.当我尝试手动导入网站时,我收到了一个信息更丰富的错误:无法登录用户 \WDeployConfigWriter".

I encountered the same issue when building via TFS. When I tried to manually import the website I got a more informative error: "not able to log on the user \WDeployConfigWriter".

事实证明,当您安装 web deploy 时,它会设置两个本地帐户 WDeployConfigWriter 和 WDeployAdmin.这些帐户的密码设置为过期.因此,请重置 Web 服务器上的密码并设置为永不过期".然后转到 IIS 中的管理服务委派.每个呈现的规则都有一个 UserName 字段.右键单击 WDeployAdmin 或 WDeployConfigWriter 并将凭据更新为新密码.

Turns out that when you install web deploy it sets up two local accounts WDeployConfigWriter and WDeployAdmin. The passwords on these accounts are set to expire. So reset the passwords on the web server and set to "never expire". Then go to Management Service Delegation in IIS. Each of the presented rules has a UserName field. Where it is WDeployAdmin or WDeployConfigWriter right click and update the credentials to the new passwords.

可以在此处找到带有屏幕截图的完整说明:http://workinghardinit.wordpress.com/2011/07/18/wdeployconfigwriter-account-issues-trouble-shooting-web-deploy-2-0-with-经验教训/

A full explanation with screenshots can be found here: http://workinghardinit.wordpress.com/2011/07/18/wdeployconfigwriter-account-issues-trouble-shooting-web-deploy-2-0-with-lessons-learned/

这篇关于Web 部署任务构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆