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

Posted by SheoNarayan under Error and Solution on 5/5/2011 | Points: 10 | Views : 30918 | Status : [Administrator] | Replies : 2

Error:
If you get below error while accessing the WCF service

This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
Parameter name: item


Solution:
Modify the service host web.config file to following, here the important setting is multipleSiteBindingsEnabled

<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" >
</serviceHostingEnvironment>
</system.serviceModel>

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

Posted by: Nishithraj on: 5/5/2011 [Member] Bronze | Points: 25

Up
0
Down
When did you get this error? Whether you got at the time when you have used multiple bindings?

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/7/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
I got this Error , so i had two http bindings on IIS7 and i removed one binding and it worked.


Thank you for posting at Dotnetfunda
[Administrator]

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response