TFS2012 离线构建服务 [英] TFS2012 Build Service offline

查看:28
本文介绍了TFS2012 离线构建服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我配置了 TFS2012 团队构建.在配置期间,构建服务显示运行状态,稍后(可能是 10 秒)构建控制器和构建代理服务停止.但是在管理构建控制器窗口中,我的 TFS2012 控制器和代理显示可用.

I configure TFS2012 team build. During the configuration the build service showed status running and little later (may be 10seconds) build controller and build agent service get stopped. But in manage build controller window, my TFS2012 controller and agent shows available.

所以我触发了为此控制器配置的构建定义,即使在显示运行 0 秒"并在队列中等待 5 分钟后也是如此.

So i triggered a build definition configured for this controller, even after 5 mins in shows "Running for 0 Seconds" and waiting in queue.

在事件查看器日志中,我可以看到以下错误记录:

In event viewer log i could see the below error logged:

WebHost 无法处理请求.发件人信息:System.ServiceModel.ServiceHostingEnvironment+HostingManager/39086322异常:System.ServiceModel.ServiceActivationException:由于编译期间出现异常,无法激活服务/tfs/queue//Services/v4.0/MessageQueueService2.svc".异常消息是:此集合已包含一个地址,其方案为 http.在此集合中,每个方案最多可以有一个地址.如果您的服务托管在 IIS 中,您可以通过将system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled"设置为 true 或指定system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters"来解决问题.参数名称:项目.---> System.ArgumentException: 此集合已包含一个地址为 http 方案.在此集合中,每个方案最多可以有一个地址.如果您的服务托管在 IIS 中,您可以通过将system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled"设置为 true 或指定system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters"来解决问题.参数名称:项目在 System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 索引,Uri 项)在 System.Collections.Generic.SynchronizedCollection`1.Add(T item)在 System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] 地址)在 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)在 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)在 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)--- 内部异常堆栈跟踪结束 ---在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)在 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)进程名称:w3wp进程号:6104提前致谢.

WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/39086322 Exception: System.ServiceModel.ServiceActivationException: The service '/tfs/queue//Services/v4.0/MessageQueueService2.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'. Parameter name: item. ---> System.ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'. Parameter name: item at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) at System.Collections.Generic.SynchronizedCollection`1.Add(T item) at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner exception stack trace --- at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity) Process Name: w3wp Process ID: 6104 Thanks in advance.

推荐答案

正如异常所暗示的那样,听起来您有两个用于 tfs Web 服务的 http 绑定.

Exactly as the exception suggests, it sounds like you have two http bindings for the tfs web service.

两个选项:

  1. 进入 web.config 并删除 http 绑定之一.

  1. Go into the web.config and remove one of the http bindings.

按照异常中的建议执行并允许多个站点绑定

Do what it suggests in the exception and allow multiple site bindings

更新为包含用户解决方案

在C:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services"下的 web.config 文件中添加以下标签

Added the below tag in web.config file under "C:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services"

<system.serviceModel>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="True">
    </serviceHostingEnvironment>
</system.serviceModel>

这篇关于TFS2012 离线构建服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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