2012-02-24 14 views
8

Gần đây, tôi đã định cấu hình SDL Tridion 2011 CME của mình để sử dụng nhiều tiêu đề lưu trữ. Để cho phép CME tải, tôi đặt WCF.RedirectTo trong web.config thích hợp. Tuy nhiên, Dịch vụ cốt lõi của tôi không còn hoạt động nữa. Tôi nhận được lỗi sau:Tôi đã thiết lập phiên bản SDL Tridion 2011 của mình để chạy với nhiều tiêu đề máy chủ và bây giờ Dịch vụ cốt lõi không hoạt động. Làm thế nào để tôi sửa chữa nó?

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'.

Làm cách nào để khắc phục sự cố này?

Trả lời

9

Bạn có thể kích hoạt các nhiều ràng buộc trang web bằng cách chỉnh sửa web.config cho giao diện người dùng Tridion và các dịch vụ cốt lõi:

  • Mở web.config trong [Tridion Cài đặt thư mục] \ web \ WebUI \ webroot \
  • Tìm phần serviceHostingEnvironment Thêm một thuộc tính mới cho rằng nút cho multipleSiteBindingsEnabled = "true"
  • này sau đó sẽ giống như <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
  • Lưu file
  • Mở web.config trong [Tridion Cài đặt thư mục] \ webservices \
  • Tìm phần serviceHostingEnvironment
  • Thêm một thuộc tính mới cho rằng nút cho multipleSiteBindingsEnabled = "true" rồi này sẽ giống như <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
  • Lưu file

Nếu bạn không muốn kích hoạt nó cho tất cả các URL của bạn có thể kích hoạt nó cho những người thân cụ thể như:

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

multipleSiteBindings là đã đúng trong webroot \ chúng tôi b.config. Nó không có mặt ở tất cả trong webservices \ web.config. Thêm nó, và thiết lập nó thành true đã khắc phục được sự cố. –

Các vấn đề liên quan