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'.
Solution:
add below code to web.config file of your wcf site
<
system.serviceModel
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
>
<
baseAddressPrefixFilters
>
</
baseAddressPrefixFilters
>
</
serviceHostingEnvironment
>
</
system.serviceModel
>
Article ID: 1528, Created: October 25, 2013 at 9:44 PM, Modified: October 25, 2013 at 9:44 PM