通过TFS Build Service的发布失败,并显示"User not Admin"(用户不是管理员); [英] Publishing via TFS Build Service fails with "User not Admin"

查看:86
本文介绍了通过TFS Build Service的发布失败,并显示"User not Admin"(用户不是管理员);的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个ASP.NET MVC5项目,该项目是在我们的构建服务器上使用TFS Build Service构建的.在触发构建并成功构建之后,我希望将Web应用程序发布到我们的测试系统.当我通过Visual Studio(2013)发布时,它可以工作.但是,当它尝试在构建服务的构建之后发布它时,它给了我错误"user not admin".我什至在构建服务器上启动了Visual Studio,并尝试将项目直接发布到测试系统,这也可以工作...通常,我们使用的是TFS 2012,但是Build Service仍然是2010(但是如果有问题,它将在不久的将来进行升级).

I have set up a ASP.NET MVC5 project which is built with a TFS Build Service on our build server. After a build is triggered and succeeded, i would like to have the webapplication published to our test system. When I publish through my Visual Studio (2013), it works. But when it tries to publish it after the build of the build service, it gives me the error "user not admin". I even started Visual Studio on the build server and tried to publish a project directly to the test system, this also works... In general we are using TFS 2012, but the Build Service is still 2010 (but if that's a problem, it will be upgraded in the near future).

有人知道为什么无法使用构建服务进行发布吗?

Does anyone has an idea why the publishing with the build service does not work?

更新:我认为问题可能出在我们尝试部署到的系统未加入域中.因此,运行构建服务的用户(是域用户)尚未在测试系统上的任何(本地)用户组中.

Update: I think the problem might could be that system we try to deploy to is not joined to the domain. So the user which runs the build service (which is a domain user) is not yet in any (local) user groups on the test system.

致谢,谢谢您的帮助

推荐答案

构建代理是要推送的代理,构建代理是默认网络帐户或您已设置的网络帐户.它不会在您的凭据下运行,并且很可能没有管理员访问权限.

The build agent is the one who is pushing and the build agent either the default network account or a network account you have set up. It does not run under your credentials and it most likely does not have admin access.

因此,要解决您的问题,您需要确保TFS使用的帐户具有管理员权限.

So to fix your problem, you need to make sure the account used by TFS has admin permissions.

要查看或更改此帐户,请按照此处的说明进行操作:

To view or change this account follow the instructions here:

http://msdn.microsoft.com/en-us/library/ms253062(v=vs.90).aspx

这篇关于通过TFS Build Service的发布失败,并显示"User not Admin"(用户不是管理员);的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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