TopXML : How can WCF support multiple IIS Binding specified per site in WCF


 

IIS supports specifying multiple IIS bindings per site, which results in multiple base addresses per scheme. A WCF service hosted under a site allows binding to only one baseAddress per scheme.

So if you get an error like this “This collection already contains an address with scheme http wcf”, you may want to look at the following:

Solution in .Net Fx 3.0:Supporting Multiple IIS Bindings Per Site

Solution in .Net Fx3.5: BaseAddressPrefixFilters

<system.serviceModel>

<serviceHostingEnvironment>

<baseAddressPrefixFilters>

        <add prefix=”http://shipping.myorg.com”/>

</baseAddressPrefixFilters>

</serviceHostingEnvironment>

</system.serviceModel>

Via TopXML : How can WCF support multiple IIS Binding specified per site in WSCF/WCF

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s