Often you encounter WCF error such as below:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item
This issue is caused of multiple host header define in IIS settings. There are number of solution to this, one of them is creating custom ServiceHostFactory or another simpler solution is to configure the settings as below
directly under system.servicemodel
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="http://intranetportal"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
No comments:
Post a Comment