lamp

This collection already contains an address with scheme http.

Published 12 September 09 12:02 PM | Frederick.Chapleau

When deploying a WCF service, this problem can occur

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 is caused by having multiple binding on the Website (like domain.com and www.domain.com).

The solution was simply to add a entry in the serviceHostingEnvironment section of the web.config, check out the reference for the complete solution.

warning: this cause the server to reject everything that is not configured in the baseAddressPrefixFilters.

-f.

ref.: http://blogs.msdn.com/rampo/archive/2008/02/11/how-can-wcf-support-multiple-iis-binding-specified-per-site.aspx

Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code: