如果我想将构建服务作为交互式进程运行,则会出错。 [英] Error if I want to run the build service as an Interactive Process.

查看:82
本文介绍了如果我想将构建服务作为交互式进程运行,则会出错。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在已安装测试代理和TFS构建服务的远程测试虚拟机上执行CodedUITests。


所以我想将构建服务作为交互式进程运行。


当我尝试在这台机器上启动构建服务时,我得到的是"VSTFS构建服务主机有停止工作"崩溃对话 我收到此错误:


管理控制台与构建服务之间的通信失败:


在本地计算机上找不到管道端点'net.pipe:// build / ServiceHost / 8'。 这通常是由Build Service处于错误状态引起的。


当我检查事件日志时,我看到此错误:


服务'TFSBuildServiceHost.exe'有一个未处理的异常。 TFSBuildServiceHost将被停止。详细信息:


异常消息:访问被拒绝(类型Win32Exception)



异常堆栈跟踪:   在Microsoft.TeamFoundation.Common.RegistryHelper.CreateSubKey(SafeHandle键,String subKey,RegistryAccessMask accessMask,Boolean& createdNew)

  在Microsoft.TeamFoundation.Common.RegistryHelper.CreateSubKey(RegistryHive hive,String subKey,RegistryAccessMask accessMask)

  在Microsoft.TeamFoundation.Build.Config.LabConfigurationUtils.SetOutDataValue(String keyName,String keyValue)

  在Microsoft.TeamFoundation.Build.Machine.WindowsService.StartLabMode()

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean ignoreSyncCtx)

  在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)

  在System.Threading.ThreadHelper.ThreadStart()

提前谢谢

解决方案


您是否希望在构建过程中运行测试,还是正常的测试运行?如果您将测试作为构建的一部分运行,那么Team Build服务将是执行测试的服务,因此需要将其配置为作为交互式进程运行。


但在正常情况下,测试代理将是一个正在运行的测试,您需要将测试代理配置为作为进程运行。有关详细信息,请查看此链接:
http://msdn.microsoft.com/en -us / library / ee291332.aspx


关于上述错误,如果构建服务帐户在您的计算机上没有管理员权限,则会发生这种情况。确保您为构建服务指定的用户帐户是管理员并重试。


 


谢谢


I want to execute CodedUITests on a remote test virtual machine where I have install the Test Agent and TFS Build Service.

So I want to run the build service as an Interactive Process.

When I try to start the build service on this machine I am getting "the VSTFS Build Service Host has stopped working" crash dialog  and I am getting this error:

Communication failure between the Administration Console and the Build Service:

The pipe endpoint 'net.pipe://build/ServiceHost/8' could not be found on your local machine.  This is usually caused by the Build Service being in an incorrect state.

When I check the event logs I see this error:

Service 'TFSBuildServiceHost.exe' had an unhandled exception. TFSBuildServiceHost will be stopped. Details:
Exception Message: Access is denied (type Win32Exception)

Exception Stack Trace:    at Microsoft.TeamFoundation.Common.RegistryHelper.CreateSubKey(SafeHandle key, String subKey, RegistryAccessMask accessMask, Boolean& createdNew)
   at Microsoft.TeamFoundation.Common.RegistryHelper.CreateSubKey(RegistryHive hive, String subKey, RegistryAccessMask accessMask)
   at Microsoft.TeamFoundation.Build.Config.LabConfigurationUtils.SetOutDataValue(String keyName, String keyValue)
   at Microsoft.TeamFoundation.Build.Machine.WindowsService.StartLabMode()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Thanks in advance

解决方案

Hi,

Do you want to run your tests as part of build process or is it a normal test run ? If you running tests as part of build, then the Team Build service will be the one that executes tests and hence it need to be configured to run as interactive process.

But in normal scenarios, the test agent will be one running tests and you need to configure the test agent to run as process. Check out this link for details on it : http://msdn.microsoft.com/en-us/library/ee291332.aspx

Regarding the above error, this happens if the build service account doesn't have Administrator privileges on your machine. Make sure that the user account you have specified for build service, is an Admin and retry.

 

Thanks


这篇关于如果我想将构建服务作为交互式进程运行,则会出错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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