开发者

how to run visual studio or nunit as administrator from teamcity

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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜