Microsoft Visual Studio – ASP.Net This Collection Already Contains an Address with Scheme HTTP

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

In .Net 4 and above, you can add this to the web.config to resolve the issue:

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

Leave a Reply

Your email address will not be published. Required fields are marked *