WCF Hosting problem

Discussion in 'ASP.NET WebServices' started by c0der, Sep 24, 2009.

  1. Hi,
    I'm trying to host a web service and I'm following this thread.
    http://community.discountasp.net/showthread.php?t=7719

    The problem is that I'm having the following error:

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

    I've found that many people fix the error by putting this in the web.config file, but I don't.
    <serviceHostingEnvironment>
    <baseAddressPrefixFilters>
    <add prefix="http://mySyte.com" />
    </baseAddressPrefixFilters>
    </serviceHostingEnvironment>

    (Of course I've changed mySite.com)

    Can anyone help me please?
    Thank You!
     
  2. I have already solved this!
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    thanks for update.
     
  4. How did you solve it?
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    Most of the problem is related to a wrong base address setting.
     

Share This Page