how to run visual studio or nunit as administrator from teamcity

自闭症网瘾萝莉.ら 提交于 2019-12-11 03:08:07

问题


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

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

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

|improve this question

回答1:


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).

  • Create a new user (for example "TeamCity")
  • Add this user to Administrator group
  • Open the service console window (http://media.techtarget.com/rms/misc/admintools7.jpg) and look for the teamcity agent: "Team City Build Agent Service"
  • Right click on it, and go to "log on" tab. Enter the newly created user

Hope this helps



来源:https://stackoverflow.com/questions/4428070/how-to-run-visual-studio-or-nunit-as-administrator-from-teamcity

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!