我在访问SDL Tridion 2011 SP1上的核心服务时遇到错误.当我尝试/webservices/CoreService2011.svc从IIS服务器浏览时,它显示以下错误:
此集合已包含方案http的地址.
此集合中每个方案最多只能有一个地址.如果您的服务是在IIS中托管的,则可以通过将'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled'设置为true或指定'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'来解决问题.参数名称:item
任何人都可以提供帮助,如何纠正.
我相信您为Tridion CME设置了多个主机名.或者至少您尝试使用多个主机名连接到Content Manager(在本例中为Core Service).
你能尝试以下方法吗?
使用localhost连接(显然当你在服务器上本地时)例如http://localhost/webservices/CoreService2011.svc
如果上述方法无效,请尝试查找IIS中为SDL Tridion 2011网站注册的主机名(在IIS 7中,右键单击该网站,然后选择"编辑绑定...").尝试使用网站绑定中定义的主机名连接到Core Service
如果仍然无法解决问题,请尝试在"Tridion_Home\webservices"下编辑web.config并在下面添加以下节点 configuration / system.ServiceModel
节点:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
<!-- The attribute "multipleSiteBindingsEnabled" was introduced in .net 4 and removes the need of http module: Tridion.Web.ServiceModel.HttpSvcPortFunneler -->
<!-- For https protocol and/or multiport configuration, uncomment this.
     There should be a <add /> entry for each unique combination of protocol and hostname that is configured in IIS Bindings.
    <baseAddressPrefixFilters>
        <add prefix="http://hostname:portnumber"/>
        <add prefix="https://hostname"/>
    </baseAddressPrefixFilters>
-->
</serviceHostingEnvironment>
Run Code Online (Sandbox Code Playgroud)
        |   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           236 次  |  
        
|   最近记录:  |