我将SDL Tridion 2011实例设置为使用多个主机头运行,现在核心服务不再';不行。我怎么修理它?

我将SDL Tridion 2011实例设置为使用多个主机头运行,现在核心服务不再';不行。我怎么修理它?,tridion,Tridion,我最近将SDL Tridion 2011 CME配置为使用多个主机头。为了使CME能够加载,我在相应的web.config中设置了WCF.RedirectTo。然而,我的核心服务不再有效。我得到以下错误: WebHost无法处理请求。 发件人信息:System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064 异常:System.ServiceModel.ServiceActivationException:由于编译期间

我最近将SDL Tridion 2011 CME配置为使用多个主机头。为了使CME能够加载,我在相应的web.config中设置了WCF.RedirectTo。然而,我的核心服务不再有效。我得到以下错误:

WebHost无法处理请求。 发件人信息:System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064 异常:System.ServiceModel.ServiceActivationException:由于编译期间出现异常,无法激活服务“/webservices/CoreService.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”来修复此问题


如何修复此问题?

您可以通过编辑Tridion UI和核心服务的web.config来启用多个站点绑定:

  • 在[Tridion安装文件夹]\web\WebUI\WebRoot\
  • 查找serviceHostingEnvironment部分为multipleSiteBindingsEnabled=“true”向该节点添加新属性
  • 这应该看起来像
  • 保存文件
  • 在[Tridion安装文件夹]\webservices\
  • 查找serviceHostingEnvironment部分
  • 为multipleSiteBindingsEnabled=“true”向该节点添加一个新属性,这样看起来应该像
  • 保存文件
如果您不想为所有URL启用它,您可以为特定URL启用它,如:

<system.serviceModel>  
    <serviceHostingEnvironment>  
        <baseAddressPrefixFilters>  
            <add prefix="http://test1.tridion.com"/>  
            <add prefix="http://test2.tridion.com"/>  
        </baseAddressPrefixFilters>  
    </serviceHostingEnvironment>  
</system.serviceModel>

multipleSiteBindings在WebRoot\web.config中已为true。它在webservices\web.config中根本不存在。添加它,并将其设置为true,修复了该问题。