我最近配置了我的SDL Tridion 2011 CME以使用多個主機頭。爲了啓用CME加載,我在相應的web.config中設置了WCF.RedirectTo。但是,我的核心服務不再有效。我收到以下錯誤:我將SDL Tridion 2011實例設置爲使用多個主機頭運行,現在覈心服務不起作用。我如何解決它?
WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064 Exception: System.ServiceModel.ServiceActivationException: The service '/webservices/CoreService.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'.
如何解決此問題?
multipleSiteBindings已經真正在的WebRoot \我們b.config。它完全不存在於webservices \ web.config中。添加它,並將其設置爲true解決了問題。 – 2012-02-24 10:52:22