簡體   English   中英

正確配置IIS6和WCF

[英]Properly configuration of IIS6 and WCF

我有帶有iss 6的Windows Server 2003,並已安裝了NET 4.0。 然后,通過本文http://msdn.microsoft.com/zh-cn/library/aa751792.aspx,我配置了IIS(運行ServiceModelReg.exe / i / x並獲得了肯定的結果)現在,我嘗試運行WCF服務由Service1組成.svc,Web.Config和bin / anyname.dll(在VS2010中由默認項目生成),當我從瀏覽器運行它時,我發現此錯誤:

    Server Error in '/ppgswcfrequests' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: 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

也許我在IIS上的虛擬目錄配置錯誤? 在此處輸入圖片說明

該錯誤似乎表明您為網站設置了多個HTTP綁定,大約4周前,我遇到了類似的問題。 我的解決方案是擺脫在IIS中為我的網站設置的任何錯誤綁定。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM