Error accessing a WCF service: "This collection already contains an address with scheme http. There can be at most one address per scheme in this collection."

You can resolve this error by changing the web.config file.

If you're using ASP.NET 4.X, add the following lines to your web.config:
 
<system.serviceModel> 
     <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
</system.serviceModel>
 
If you're using ASP.NET 2.0/3.0/3.5, add the following lines to your web.config:
 
<system.serviceModel> 
     <serviceHostingEnvironment> 
          <baseAddressPrefixFilters> 
               <add prefix="http://www.YourHostedDomainName.com"/> 
          </baseAddressPrefixFilters> 
     </serviceHostingEnvironment> 
</system.serviceModel>