如何从teamcity以管理员身份运行visual studio或nunit [英] how to run visual studio or nunit as administrator from teamcity

查看:65
本文介绍了如何从teamcity以管理员身份运行visual studio或nunit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 teamcity 运行我的测试.出现以下错误

I am currently running my tests using teamcity. Gaving the following error

设置方法失败.System.UnauthorizedAccessException:检索 CLSID 为 {0002DF01-0000-0000-C000-

SetUp method failed. System.UnauthorizedAccessException : Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-

知道如何在使用 Windows 7 时将其设置为以管理员身份运行.

Any idea how can I set it to run as administrator as I am using windows 7.

推荐答案

我也使用 TeamCity 和 WatiN.这是我为确保 TeamCity 可以以管理员身份运行,但不能以本地系统身份运行(因为在运行 IE 时最好拥有真实用户)所做的工作.

I also use TeamCity and WatiN. Here is what I did to make sure TeamCity can run as Administrator, but not as Local System (because it is better to have a real user when you run IE).

  • 创建一个新用户(例如TeamCity")
  • 将此用户添加到管理员组
  • 打开服务控制台窗口 (http://media.techtarget.com/rms/misc/admintools7.jpg) 并查找 teamcity 代理:Team City Build Agent Service"
  • 右键单击它,然后转到登录"选项卡.输入新创建的用户

希望能帮到你

这篇关于如何从teamcity以管理员身份运行visual studio或nunit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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