WCF and IIS Bindings


By design, WCF cannot have multiple IIS bindings. When using WCF you may see this error: "This collection already contains an address with scheme http"

To work around this, you can write a custom service factory to intercept and remove the other bindings being used or you can edit your web.config by specifying the address:

 

<serviceHostingEnvironment>

 <baseAddressPrefixFilters>
  <add prefix="http://mydomain.com"/>
 </baseAddressPrefixFilters>
</serviceHostingEnvironment>


Was this content helpful?




© 2014 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER