Wednesday, July 15, 2009

"This collection already contains an address with scheme http. There can be at most one address per scheme in this collection"

If you are using a third party host like discountasp.net and you are trying to host a wcf service
within your web application and you get this error message:

"This collection already contains an address with scheme http. There can be at most one address per scheme in this collection"

you will need to add the following web.config key:

<servicehostingenvironment>
<baseaddressprefixfilters>
<add prefix="httplinktoyoursite">
</baseaddressprefixfilters>
</servicehostingenvironment>

If you have any tips, tricks or resources you would like to share with the group please email them to Susan Fischer at susan@clinchportal.com