尝试调用WCF服务时,收到以下错误:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item
<baseAddressPrefixFilters>
<add prefix="http://mydomain.com.au"/>
</baseAddressPrefixFilters>
但是,当我尝试将其添加到我的web.config部分时,它告诉我它无效。
答案 0 :(得分:0)
你应该在3.5中使用它:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
如果你移动到4.0,你可以使用svc less激活,如下所示: ServiceRoute + WebServiceHostFactory kills WSDL generation? How to create extensionless WCF service with ?wsdl